Repository navigation
Python: Improve error messages - #3825
Merged
Merged
Conversation
Changed currently defined exceptions to inherit from DaggerException. Signed-off-by: Kelton Bassingthwaite <[email protected]>
Signed-off-by: Kelton Bassingthwaite <[email protected]>
… running. Signed-off-by: Kelton Bassingthwaite <[email protected]>
KGB33
force-pushed
the
sdk-python-improve-error-messages
branch
from
November 14, 2022 22:48
17429b2 to
2e82584
Compare
sipsma
reviewed
Nov 14, 2022
sipsma
left a comment
Contributor
There was a problem hiding this comment.
Left one comment and need Helder to review the python-aspects of the code but the general idea looks great to me, greatly appreciated!
Signed-off-by: Kelton Bassingthwaite <[email protected]>
helderco
approved these changes
Nov 15, 2022
Signed-off-by: Helder Correia <[email protected]>
Contributor
Author
|
Thanks for cleaning it up for me! I'd be happy to take a stab at some tests over the next few days (either in this PR or anther). |
Signed-off-by: Kelton Bassingthwaite <[email protected]>
Contributor
|
Thanks @KGB33, I'm going to merge as I'm going to need this. Feel free to add tests in a follow up PR 🙂 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improves error messages when dagger is not installed or not running.
Also creates the catch all (
DaggerExecption) mentioned in #3805.Discord thread: https://discord.com/channels/707636530424053791/1041044357345718282/1041044783155654766
Message examples (Tracebacks removed)
Docker not installed
Before
After
Docker not running (Dagger Engine not cached)
Before
After
Docker not running (Dagger Engine cached)
Before
After