diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-13 14:29:13 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-13 14:29:13 +0200 |
commit | c8614cbbe76a97dc70576451a75907059b4f876c (patch) | |
tree | 7938897c3aeb452fd020d5ac515c91ccd3b74891 /app/services/files | |
parent | 34690142bf42e0a3d48b1b30075387abefe86318 (diff) | |
download | gitlab-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.rb | 2 |
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 |