summaryrefslogtreecommitdiff
path: root/app/services/tags/destroy_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/tags/destroy_service.rb')
-rw-r--r--app/services/tags/destroy_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/tags/destroy_service.rb b/app/services/tags/destroy_service.rb
index 910b4f5e361..a368f4f5b61 100644
--- a/app/services/tags/destroy_service.rb
+++ b/app/services/tags/destroy_service.rb
@@ -21,6 +21,8 @@ module Tags
else
error('Failed to remove tag')
end
+ rescue GitHooksService::PreReceiveError => ex
+ error(ex.message)
end
def error(message, return_code = 400)