From 5f12a6a41a46800841ba02e72a6a4eb6d5e129ae Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Tue, 25 Sep 2018 14:26:35 +0000 Subject: Display helpful feedback when proxying an SSH git push to secondary request (v2) --- lib/gitlab_shell.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/gitlab_shell.rb') diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 79af861..57c70f5 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -95,8 +95,9 @@ class GitlabShell # rubocop:disable Metrics/ClassLength $stderr.puts "GitLab: Invalid repository path" false rescue Action::Custom::BaseError => ex - $logger.warn('Custom action error', command: origin_cmd, user: log_username) - $stderr.puts "GitLab: #{ex.message}" + $logger.warn('Custom action error', exception: ex.class, message: ex.message, + command: origin_cmd, user: log_username) + $stderr.puts ex.message false end -- cgit v1.2.1