summaryrefslogtreecommitdiff
path: root/lib/api/deploy_keys.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-01-07 11:39:20 +0100
committerMarin Jankovski <maxlazio@gmail.com>2015-01-07 11:39:20 +0100
commit8dd672776ee72990fd41b37559a8ba102595d6ca (patch)
treeaf57df7a2013883162ebff91de1a6f3ede775194 /lib/api/deploy_keys.rb
parentcd0aed3d54fc01d0c361a8cf282d2de48297f66a (diff)
downloadgitlab-ce-8dd672776ee72990fd41b37559a8ba102595d6ca.tar.gz
Fix failing tests due to updates on the return messages.
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r--lib/api/deploy_keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb
index dd4b761feb2..06eb7756841 100644
--- a/lib/api/deploy_keys.rb
+++ b/lib/api/deploy_keys.rb
@@ -58,7 +58,7 @@ module API
if key.valid? && user_project.deploy_keys << key
present key, with: Entities::SSHKey
else
- render_api_error!("Failed to add key #{key.errors.messages}", 400)
+ render_validation_error!(key)
end
end