Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/branches/create_service.rb')
-rw-r--r--app/services/branches/create_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/branches/create_service.rb b/app/services/branches/create_service.rb
index 958dd5c9965..8684da701db 100644
--- a/app/services/branches/create_service.rb
+++ b/app/services/branches/create_service.rb
@@ -16,8 +16,9 @@ module Branches
else
error("Invalid reference name: #{ref}")
end
- rescue Gitlab::Git::PreReceiveError => ex
- error(ex.message)
+ rescue Gitlab::Git::PreReceiveError => e
+ Gitlab::ErrorTracking.track_exception(e, pre_receive_message: e.raw_message, branch_name: branch_name, ref: ref)
+ error(e.message)
end
def success(branch)