def execute
setup_trap
check_ruby
check_arity(method(:run), *arguments)
load_config
check_version
check_completion
setup
run(*arguments)
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)
error(message)
end