| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Our current implementation groups all diffpy.morph errors into a SystemExit for CLI to exit. A user can thus except all diffpy.morph errors through a SystemExit. |
Sorry, something went wrong.
|
please see my other comment. I dislike this solution on the basis that it is ugly. I would rather crash with an Error but a really good error message so the users don't freak out. |
Sorry, something went wrong.
Sorry, something went wrong.
|
The traceback cannot be removed without system exit or if I wrap the entire program in a try except. |
Sorry, something went wrong.
|
Nice. Please see comment. Traceback is fine. It contains more information. |
Sorry, something went wrong.
Which comment? I did not see a new one. The error messages are all tailored to the specific failure-mode already. We have now edited so the actual error mode can be excepted (e.g. except ValueError) |
Sorry, something went wrong.
* Remove PDF language when saving * news
* Robust warning handling * News * Nonews
| def custom_error(self, msg): | ||
| """custom_error(msg : string) | ||
| def morph_error(self, msg, error): | ||
| """morph_error(msg : string) |
There was a problem hiding this comment.
Let's make the docstring a bit better (and also accurate)
Sorry, something went wrong.
| parser.custom_error( | ||
| "Too many arguments. You must only supply a FILE and a DIRECTORY." | ||
| parser.morph_error( | ||
| "Too many arguments. You must only supply a FILE and a DIRECTORY.", |
There was a problem hiding this comment.
File or a directory?
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #292 +/- ##
==========================================
- Coverage 99.93% 99.93% -0.01%
==========================================
Files 24 24
Lines 1480 1479 -1
==========================================
- Hits 1479 1478 -1
Misses 1 1
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #291
