forked from zulip/zulip-terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run: Extract new function exit_with_error to unify error output style.
Errors are now specified as: * the main error string (to be styled red) * an optional extra text (unstyled, default empty string) * an optional error code (default 1) This is mostly a refactor, but some behavior without fixed tests is improved with regard to newlines and text. Tests added. Co-authored-by: neiljp (Neil Pilgrim) <[email protected]>
- Loading branch information
1 parent
1f2adf1
commit 0b88ecb
Showing
2 changed files
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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