summaryrefslogtreecommitdiff
path: root/lib/gitlab/file_hook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/file_hook.rb')
-rw-r--r--lib/gitlab/file_hook.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/file_hook.rb b/lib/gitlab/file_hook.rb
index 55eba2858fb..e398a3f9585 100644
--- a/lib/gitlab/file_hook.rb
+++ b/lib/gitlab/file_hook.rb
@@ -28,7 +28,7 @@ module Gitlab
exit_status = result.status&.exitstatus
[exit_status == 0, result.stderr]
- rescue => e
+ rescue StandardError => e
[false, e.message]
end
end