diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-01-02 15:25:44 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-01-04 22:17:02 +0900 |
commit | 8a14548fc741e8d115d99e8303e36ed83660494d (patch) | |
tree | 224985a3ba901dbfaf2cdd4987aa6a5b535ed6c1 /app/services/releases | |
parent | f5f52da885f331b9860c2cc1fe1847fd10ca9385 (diff) | |
download | gitlab-ce-8a14548fc741e8d115d99e8303e36ed83660494d.tar.gz |
Add spec for duplicate link name creation
Fix spec for mysql unique validation failure
Diffstat (limited to 'app/services/releases')
-rw-r--r-- | app/services/releases/create_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/releases/create_service.rb b/app/services/releases/create_service.rb index 1590d9137cc..106fed3811d 100644 --- a/app/services/releases/create_service.rb +++ b/app/services/releases/create_service.rb @@ -48,7 +48,7 @@ module Releases ) success(tag: tag, release: release) - rescue ActiveRecord::RecordInvalid => e + rescue => e error(e.message, 400) end end |