lib/travis/cli/command.rb in travis-1.6.18.travis.609.5 vs lib/travis/cli/command.rb in travis-1.6.18.travis.610.5
- old
+ new
@@ -199,9 +199,15 @@
clear_error
store_config
rescue Travis::Client::NotLoggedIn => e
raise(e) if explode?
error "#{e.message} - try running #{command("login#{endpoint_option}")}"
+ rescue Travis::Client::NotFound => e
+ raise(e) if explode?
+ error "resource not found (#{e.message})"
+ rescue Travis::Client::Error => e
+ raise(e) if explode?
+ error e.message
rescue StandardError => e
raise(e) if explode?
message = e.message
message += color("\nfor a full error report, run #{command("report#{endpoint_option}")}", :error) if interactive?
store_error(e)