Skip to content

Move all error diagnostics to _errors - #531

Merged
woodruffw merged 21 commits into
sigstore:mainfrom
trail-of-forks:andrew/exception-handling-la-deuxieme
Mar 13, 2023
Merged

woodruffw merged 21 commits into
sigstore:mainfrom
trail-of-forks:andrew/exception-handling-la-deuxieme

Conversation

@tnytown

@tnytown tnytown commented Mar 7, 2023 •

Copy link
Copy Markdown
Contributor

Summary

This is the work mentioned in #525. I grepped for dedent and moved all user-facing error messages to subclasses of Error w/ the diagnostics method.

Depends on #525, that should be merged first.

Release Note

(Same as #525)

  • A new error handling system was added. Diagnostic messages are now printed for certain errors.

Comment thread sigstore/_errors.py Resolved
@tnytown
tnytown force-pushed the andrew/exception-handling-la-deuxieme branch from bb9800c to 80d5408 Compare March 7, 2023 19:48
@tnytown

tnytown commented Mar 7, 2023

Copy link
Copy Markdown
Contributor Author

Sigh, ok. I will need to definitively figure out the circular import issue.

@tnytown
tnytown marked this pull request as draft March 7, 2023 19:50
@woodruffw
woodruffw requested a review from tetsuo-cpp March 7, 2023 20:26
@woodruffw woodruffw added the refactoring Refactoring tasks. label Mar 7, 2023
Comment thread sigstore/_errors.py Resolved
@tnytown
tnytown marked this pull request as ready for review March 9, 2023 06:27
@tnytown
tnytown force-pushed the andrew/exception-handling-la-deuxieme branch from 92a6168 to 1c3813c Compare March 9, 2023 07:36
@tnytown
tnytown force-pushed the andrew/exception-handling-la-deuxieme branch from 1c3813c to 2f6ffb7 Compare March 9, 2023 07:39
@tnytown

tnytown commented Mar 11, 2023

Copy link
Copy Markdown
Contributor Author

newly failing because of a recently introduced lint in bandit.

@tnytown

tnytown commented Mar 11, 2023

Copy link
Copy Markdown
Contributor Author

Blocked on #541.

Comment thread CHANGELOG.md Resolved
@tnytown
tnytown requested a review from woodruffw March 12, 2023 18:13
Comment thread .venv Resolved
Signed-off-by: Andrew Pan <[email protected]>
@woodruffw
woodruffw merged commit 4ef28da into sigstore:main Mar 13, 2023
@woodruffw
woodruffw deleted the andrew/exception-handling-la-deuxieme branch March 13, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants