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 crash when (globally installed) changelog tool wants to report an error #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GerHobbelt
Copy link
Contributor

This happens, for instance, when globally installing changelog and running it without any argument in a directory where it cannot find a package.json or other means to detect a 'project'. The internal code then returns Error instances instead of a promise, as otherwise expected by the cli.js code. Which, consequently, crashes.

Code fixes:

  • fix: return failures (Errors ~ thrown as exceptions) through the same promise as any positive result.
  • fix: typos in test descriptions
  • add tests for the fix to prevent regression

…me promise as any positive result.

- fix: typos in test descriptions
- add tests for the fix to prevent regression

# Conflicts:
#	test/changelog.test.js
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.

1 participant