You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an error occurs while loading a subcommand module (e.g. bin/ui.py), the specific error message is suppressed and the program exits with a generic invalid choice message.
Expected Behavior
Errors that occur while loading subcommand modules should be shown to the user, at least when that subcommand is used.
Context / environment
During development, the obfuscation of error messages forces me to run through a debugger to reproduce the error message or to carefully inspect the file changes.
Steps to Reproduce (for bugs)
In the global namespace of bin/ui.py, add a line raise Exception("Reason for the error")
Run superscore ui
Note the output: 'ui' is not a valid choice, but no reason is given
Suggested Solution
The text was updated successfully, but these errors were encountered:
This is due to how we gather the sub-commands. If the subcommand throws an exception while being prepared, it's simply not prepared nor made available.
I've recently worked out a better way to build the argparser, which should speed things up and will probably also propagate errors fully. It just hasn't made its way here yet
Current Behavior
If an error occurs while loading a subcommand module (e.g.
bin/ui.py
), the specific error message is suppressed and the program exits with a genericinvalid choice
message.Expected Behavior
Errors that occur while loading subcommand modules should be shown to the user, at least when that subcommand is used.
Context / environment
During development, the obfuscation of error messages forces me to run through a debugger to reproduce the error message or to carefully inspect the file changes.
Steps to Reproduce (for bugs)
bin/ui.py
, add a lineraise Exception("Reason for the error")
superscore ui
Suggested Solution
The text was updated successfully, but these errors were encountered: