[SDK] CLI tools should catch socket errors like "Connection refused"
Common SDK errors like "connection refused" should be reported to the user in a friendly fashion instead of resulting in a crash and a stack trace.
#3 Updated by Brett Smith about 4 years ago
- Target version changed from Bug Triage to Arvados Future Sprints
I feel like it would be helpful to define a bigger picture strategy for catching and reporting SDK exceptions in our CLI tools. There's a lot that can go wrong besides socket errors, and it seems like if we figure out our desired approach, we can apply that consistently across all kinds of handleable exceptions without much extra effort.
#4 Updated by Brett Smith about 4 years ago
- Category set to SDKs
And this may be out of scope, but given that patterns are starting to emerge in our tools, it doesn't seem totally unreasonable to start abstracting out a CLIToolBase class or something like that, which other tools can derive from. Having a common source for our common tasks like command-line parsing and error handling is starting to feel worthwhile.