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

Move all error diagnostics to _errors #531

Merged

Conversation

tnytown
Copy link
Collaborator

@tnytown tnytown commented Mar 7, 2023

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.

Signed-off-by: Andrew Pan <a@tny.town>
sigstore/_errors.py Outdated Show resolved Hide resolved
@tnytown tnytown force-pushed the andrew/exception-handling-la-deuxieme branch from bb9800c to 80d5408 Compare March 7, 2023 19:48
@tnytown
Copy link
Collaborator Author

tnytown commented Mar 7, 2023

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 added the refactoring Refactoring tasks. label Mar 7, 2023
woodruffw and others added 2 commits March 7, 2023 17:16
sigstore/_errors.py Outdated Show resolved Hide resolved
@tnytown tnytown marked this pull request as ready for review March 9, 2023 06:27
tnytown and others added 10 commits March 9, 2023 00:42
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Alex Cameron <asc@tetsuo.sh>
Signed-off-by: Andrew Pan <a@tny.town>
@tnytown tnytown force-pushed the andrew/exception-handling-la-deuxieme branch from 92a6168 to 1c3813c Compare March 9, 2023 07:36
Signed-off-by: Andrew Pan <a@tny.town>
@tnytown tnytown force-pushed the andrew/exception-handling-la-deuxieme branch from 1c3813c to 2f6ffb7 Compare March 9, 2023 07:39
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
Signed-off-by: Andrew Pan <a@tny.town>
@tnytown
Copy link
Collaborator Author

tnytown commented Mar 11, 2023

newly failing because of a recently introduced lint in bandit.

@tnytown
Copy link
Collaborator Author

tnytown commented Mar 11, 2023

Blocked on #541.

CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Andrew Pan <a@tny.town>
@tnytown tnytown requested a review from woodruffw March 12, 2023 18:13
.venv Outdated Show resolved Hide resolved
Signed-off-by: Andrew Pan <a@tny.town>
@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