diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-16 10:18:59 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-18 16:55:10 +1000 |
commit | 5aa9e4bf527cc60f2b00bae326eb2261f92e1687 (patch) | |
tree | 4d796da53fff49ffdb3730a5bbcd1ab829446c75 | |
parent | 2f976d33f3a21d22083d439c0371bbbad8584fe9 (diff) | |
download | gitlab-shell-5aa9e4bf527cc60f2b00bae326eb2261f92e1687.tar.gz |
Include more log detail for Custom action errors
-rw-r--r-- | lib/gitlab_shell.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |