Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle the file not found error gracefully #46

Merged
merged 2 commits into from
May 24, 2024

Conversation

golesuman
Copy link
Collaborator

@golesuman golesuman commented May 24, 2024

Description

Give meaningful error message than giving the full stack trace when the file is not found.

Related Issue

Fixes: #44

Type of Change

Please mark the appropriate option below to describe the type of change your pull request introduces:

  • Bug fix
  • New feature
  • Enhancement
  • Documentation update
  • Refactor
  • Other (please specify)

Checklist

  • My pull request has a clear title and description.
  • I have used semantic commit messages.
    Examples: "fix: Fixed foobar bug", "feat(accounts): Added foobar feature".
  • I have added/updated the necessary documentation on README.md.
  • I have added appropriate test cases (if applicable) to ensure the changes are functioning correctly.

Additional Notes

[Add any additional notes or context that you think the reviewers should know about.]

By submitting this pull request, I confirm that I have read and complied with the contribution guidelines of this project.

@golesuman golesuman requested review from aj3sh and sugat009 May 24, 2024 15:00
@aj3sh
Copy link
Member

aj3sh commented May 24, 2024

Could you please add a test for this case?

@golesuman golesuman force-pushed the fix/file-not-found-error branch 2 times, most recently from c1ed3ca to 483b391 Compare May 24, 2024 15:17
@golesuman
Copy link
Collaborator Author

Could you please add a test for this case?

yeah done please check @aj3sh

@golesuman golesuman changed the title fix: handle the file not error gracefully fix: handle the file not found error gracefully May 24, 2024
Copy link
Member

@aj3sh aj3sh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good.

src/commitlint/cli.py Outdated Show resolved Hide resolved
@golesuman golesuman requested a review from aj3sh May 24, 2024 16:00
@aj3sh aj3sh merged commit 6c5a65c into opensource-nepal:main May 24, 2024
3 checks passed
@ghost ghost mentioned this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle error if commit file not present
2 participants