-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up some error messages #2032
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,13 @@ reset_aliases | |
$opt, $apps, $err = getopt $args 'a:' 'arch=' | ||
$app = $apps[0] | ||
|
||
if(!$app) { error 'ERROR: <app> missing'; my_usage; exit 1 } | ||
if(!$app) { error '<app> missing'; my_usage; exit 1 } | ||
|
||
$architecture = default_architecture | ||
try { | ||
$architecture = ensure_architecture ($opt.a + $opt.arch) | ||
} catch { | ||
error "ERROR: $_"; exit 1 | ||
abort "ERROR: $_" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is fine, but kinda confusing. Could abort either not prefix 'ERROR: ', or use a different prefix, like 'FATAL: '? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It could, but I wouldn't worry too much about it. As @r15ch13 said, the whole error handling needs to be changed anyway. The worst cases ("ERROR ERROR...") have been taken care of. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. thx. |
||
} | ||
|
||
$deps = @(deps $app $architecture) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though the original was darkyellow text, changed to
error
instead ofwarn
, since it seemed like an error condition.