Skip to content

[Good First Issue] Improve Error Handling and User Feedback #10

@SthembisoMfusi

Description

@SthembisoMfusi

🎯 Issue Description

Make the tool more robust by improving error handling and providing better feedback to users.

🚀 What You'll Learn

  • Exception handling
  • User experience design
  • Error logging

📋 Tasks

  • Add try-catch blocks around file operations
  • Provide specific error messages
  • Add logging for debugging
  • Handle permission errors gracefully
  • Add retry logic for failed operations
  • Improve help text and examples

🛠️ Files to Modify

  • py_sort.py
  • README.md

💡 Hints

  • Use specific exception types
  • Log errors to a file
  • Provide actionable error messages

🧪 Testing

# Test with permission issues
python py_sort.py /root  # Should fail gracefully

📚 Resources

❓ Questions?

Feel free to ask questions in the comments or start a discussion!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions