From f6966d8922ab1913153259d343338e58715bd6ba Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 3 Oct 2017 16:33:32 +0200 Subject: Include RevList error messages in exceptions --- lib/gitlab/git/rev_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/git/rev_list.rb b/lib/gitlab/git/rev_list.rb index e0943d3a3eb..92a6a672534 100644 --- a/lib/gitlab/git/rev_list.rb +++ b/lib/gitlab/git/rev_list.rb @@ -31,7 +31,7 @@ module Gitlab output, status = popen(args, nil, Gitlab::Git::Env.all.stringify_keys) unless status.zero? - raise "Got a non-zero exit code while calling out `#{args.join(' ')}`." + raise "Got a non-zero exit code while calling out `#{args.join(' ')}`: #{output}" end output.split("\n") -- cgit v1.2.1