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

feat: improve error handling during submission #294

Merged

Conversation

netomi
Copy link
Contributor

@netomi netomi commented Jan 8, 2024

This PR improves error handling when a submission fails.

In some cases, calling notarytool fails with an error as some license agreements need to be manually accepted. The tool will print this to stderr. Parsing the output from the tool in such cases resulting in an exception as the captured stdout was empty and a generic error message was returned.

Now, if an exception is thrown during parsing, the error output is captured and used for the returned value so that you immediately know whats going on.

@netomi netomi requested a review from mbarbero January 8, 2024 10:25
@netomi netomi merged commit 2576460 into eclipse-cbi:main Jan 8, 2024
6 checks passed
@netomi netomi deleted the improve-error-handling-of-notarytool branch January 8, 2024 12:41
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.

2 participants