-
Notifications
You must be signed in to change notification settings - Fork 798
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
Errors in bumpfile scripts don't change return code from 0 #505
Comments
Thanks for the report! So we have a test covering this exact case currently, but I think the fact that alterations to your local state/project still occur after the error is encountered might be the larger issue here... Going to link this to #528 and close, but feel free to reopen/comment if I've misinterpreted your issue! |
That test case doesn't match with my experiences, I'm putting failures in my update script and standard-version isn't failing. My test environment:
Issue A: Invalid syntax:
Issue B: Throw an error in the updater script
The return code from |
Ah, sorry @mtfurlan for grouping this incorrectly during a triage session yesterday... it seemed similar. At the moment, we are capturing the errors and simply pushing them to a
|
No worries! What I want is a return code other than 0. I agree that #528 would be super helpful. |
If you take the example
standard-version-updater.js
from the readme and point to an invalid JSON file, standard-version still thinks it completed successfully and doesn't fail.Same thing if you replace the contents of the two functions to just just
throw new Error('this doesn't do anything!');
The text was updated successfully, but these errors were encountered: