From 7f2dd5b3baeb8891403bb2496619feeabfb010cd Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Fri, 5 Feb 2016 11:23:15 -0600 Subject: [Exec] Ensure failure loading is printed to STDERR --- lib/bundler/cli/exec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb index 0caba8721b..c7f8d0ec07 100644 --- a/lib/bundler/cli/exec.rb +++ b/lib/bundler/cli/exec.rb @@ -65,8 +65,7 @@ module Bundler rescue Exception => e # rubocop:disable Lint/RescueException Bundler.ui = ui Bundler.ui.error "bundler: failed to load command: #{cmd} (#{file})" - Bundler.ui.trace(e, nil, true) - exit 125 + abort "#{e.class}: #{e.message}\n#{e.backtrace.join("\n ")}" end def ruby_shebang?(file) -- cgit v1.2.1