summaryrefslogtreecommitdiff
path: root/app/services/files
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-13 14:29:13 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-13 14:29:13 +0200
commitc8614cbbe76a97dc70576451a75907059b4f876c (patch)
tree7938897c3aeb452fd020d5ac515c91ccd3b74891 /app/services/files
parent34690142bf42e0a3d48b1b30075387abefe86318 (diff)
downloadgitlab-ce-c8614cbbe76a97dc70576451a75907059b4f876c.tar.gz
Capture pre-receive exception
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/files')
-rw-r--r--app/services/files/base_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb
index 1f7b92e222b..507e21f5818 100644
--- a/app/services/files/base_service.rb
+++ b/app/services/files/base_service.rb
@@ -26,7 +26,7 @@ module Files
else
error("Something went wrong. Your changes were not committed")
end
- rescue ValidationError => ex
+ rescue CommitService::CommitError, CommitService::PreReceiveError, ValidationError => ex
error(ex.message)
end