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

Use exceptions for handling workspace add error #641

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Jan 17, 2025

This stops using the boolean and instead will raise exceptions if
there's an issue adding a workspace. This will help us differentiate if
the operation failed due to a name already being taken, or the name
having invalid characters.

Signed-off-by: Juan Antonio Osorio [email protected]

@JAORMX JAORMX force-pushed the exceptions-workspace-add branch 2 times, most recently from dbf3e80 to 4cd4a57 Compare January 17, 2025 13:26
@JAORMX JAORMX marked this pull request as ready for review January 17, 2025 13:26
@JAORMX JAORMX force-pushed the exceptions-workspace-add branch 2 times, most recently from 6f1c412 to b0ae7a8 Compare January 17, 2025 13:46
aponcedeleonch
aponcedeleonch previously approved these changes Jan 17, 2025
Copy link
Contributor

@aponcedeleonch aponcedeleonch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a cosmetic comment but otherwise seems good

This stops using the boolean and instead will raise exceptions if
there's an issue adding a workspace. This will help us differentiate if
the operation failed due to a name already being taken, or the name
having invalid characters.

Signed-off-by: Juan Antonio Osorio <[email protected]>
@JAORMX JAORMX merged commit c6d8a30 into stacklok:main Jan 17, 2025
3 checks passed
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