Navigation Menu

Skip to content

Commit

Permalink
(MAINT) Add "r10k" prefix to top level error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
scotje committed Jan 11, 2017
1 parent 2e6acde commit 37b61f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/r10k
Expand Up @@ -6,12 +6,12 @@ require 'colored'
begin
R10K::CLI.command.run(ARGV)
rescue Interrupt
$stderr.puts "Aborted!".red
$stderr.puts "r10k: Aborted!".red
exit(1)
rescue SystemExit => e
exit(e.status)
rescue Exception => e
$stderr.puts "\nError while running: #{e.inspect}".red
$stderr.puts "\nr10k: Runtime error: #{e.inspect}".red
$stderr.puts e.backtrace.join("\n").red if ARGV.include? '--trace'
exit(1)
end

0 comments on commit 37b61f7

Please sign in to comment.