summaryrefslogtreecommitdiff
path: root/app/services/create_branch_service.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-07-04 15:30:22 +0300
committerValery Sizov <valery@gitlab.com>2016-07-04 15:31:49 +0300
commitbf218337ed5bd535856204ef1878a1495fa37dfe (patch)
tree66415495c994a17fb0c45bcfcb4a3d08d808098f /app/services/create_branch_service.rb
parent021b6aef94b3398ab5603b4c11afd4c6d8432795 (diff)
downloadgitlab-ce-bf218337ed5bd535856204ef1878a1495fa37dfe.tar.gz
Better message for git hooks and file locks
Diffstat (limited to 'app/services/create_branch_service.rb')
-rw-r--r--app/services/create_branch_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/create_branch_service.rb b/app/services/create_branch_service.rb
index 9f4481a8153..cc128563437 100644
--- a/app/services/create_branch_service.rb
+++ b/app/services/create_branch_service.rb
@@ -34,8 +34,8 @@ class CreateBranchService < BaseService
else
error('Invalid reference name')
end
- rescue GitHooksService::PreReceiveError
- error('Branch creation was rejected by Git hook')
+ rescue GitHooksService::PreReceiveError => ex
+ error(ex.message)
end
def success(branch)