diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-01-07 11:39:20 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-01-07 11:39:20 +0100 |
commit | 8dd672776ee72990fd41b37559a8ba102595d6ca (patch) | |
tree | af57df7a2013883162ebff91de1a6f3ede775194 /lib/api/labels.rb | |
parent | cd0aed3d54fc01d0c361a8cf282d2de48297f66a (diff) | |
download | gitlab-ce-8dd672776ee72990fd41b37559a8ba102595d6ca.tar.gz |
Fix failing tests due to updates on the return messages.
Diffstat (limited to 'lib/api/labels.rb')
-rw-r--r-- | lib/api/labels.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/labels.rb b/lib/api/labels.rb index e8ded662253..78ca58ad0d1 100644 --- a/lib/api/labels.rb +++ b/lib/api/labels.rb @@ -37,7 +37,7 @@ module API if label.valid? present label, with: Entities::Label else - render_api_error!("Unable to create label #{label.errors.messages}", 400) + render_validation_error!(label) end end @@ -90,7 +90,7 @@ module API if label.update(attrs) present label, with: Entities::Label else - render_api_error!("Unable to create label #{label.errors.messages}", 400) + render_validation_error!(label) end end end |