From bf218337ed5bd535856204ef1878a1495fa37dfe Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Mon, 4 Jul 2016 15:30:22 +0300 Subject: Better message for git hooks and file locks --- app/services/create_branch_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/services/create_branch_service.rb') 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) -- cgit v1.2.1