Skip to content

🌟 [Good First Issue] Improve Error Messages in Scanner Module #7

Description

@superninja-app

🎯 Objective

Enhance user experience by making error messages more descriptive and actionable.

📝 Description

Current error messages in the scanner module are generic and don't provide clear guidance to users. We need to improve them to be more specific and helpful.

🔧 Tasks

  1. Review all error messages in core/src/scanner.rs
  2. Make messages more descriptive with specific context
  3. Add suggested actions for users to resolve issues
  4. Update tests to cover new error messages

📁 Files to Modify

  • core/src/scanner.rs
  • core/tests/scanner_tests.rs

🎨 Example

// Current
return Err("Scan failed".to_string());

// Improved
return Err(format!("Scan failed: Unable to access file '{}'. Check file permissions and ensure the file is not in use.", file_path.display()));

✅ Acceptance Criteria

  • All error messages are descriptive and actionable
  • Users can understand what went wrong and how to fix it
  • All existing tests pass
  • New tests added for error scenarios

🏷️ Labels

good first issue, enhancement, documentation, 用户体验


Perfect for newcomers! This issue helps improve user experience while learning the GhostAntivirus codebase. The task is well-defined and has clear success criteria.

Estimated time: 2-4 hours
Difficulty: Beginner
Mentorship available: Yes! Ask questions in comments and we'll help you get started.

🚀 Ready to contribute? Fork the repository and create a pull request!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions