mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Print error messages to stderr
This commit is contained in:
+3
-3
@@ -116,13 +116,13 @@ class Hbc::CLI
|
||||
run_command(command, *rest)
|
||||
rescue Hbc::CaskError, Hbc::CaskSha256MismatchError => e
|
||||
onoe e
|
||||
puts Hbc::Utils.error_message_with_suggestions if e.is_a?(Hbc::CaskHeaderParseError)
|
||||
$stderr.puts Hbc::Utils.error_message_with_suggestions if e.is_a?(Hbc::CaskHeaderParseError)
|
||||
$stderr.puts e.backtrace if Hbc.debug
|
||||
exit 1
|
||||
rescue StandardError, ScriptError, NoMemoryError => e
|
||||
onoe e
|
||||
puts Hbc::Utils.error_message_with_suggestions
|
||||
puts e.backtrace
|
||||
$stderr.puts Hbc::Utils.error_message_with_suggestions
|
||||
$stderr.puts e.backtrace
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user