diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-25 12:59:52 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 18:58:18 +0100 |
commit | 6b82a9ef51f59d37975bd5de48142d1a0a8504de (patch) | |
tree | d69f9767fce454d67d736eaad6985fd0d1b1460f /app/controllers/projects/variables_controller.rb | |
parent | bf2a040cf9fb8e0eb3576732f3cda6fe6326e65d (diff) | |
download | gitlab-ce-6b82a9ef51f59d37975bd5de48142d1a0a8504de.tar.gz |
Format validation errors as human readable messages
Diffstat (limited to 'app/controllers/projects/variables_controller.rb')
-rw-r--r-- | app/controllers/projects/variables_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/variables_controller.rb b/app/controllers/projects/variables_controller.rb index 9c0dad393c3..99dea65927d 100644 --- a/app/controllers/projects/variables_controller.rb +++ b/app/controllers/projects/variables_controller.rb @@ -6,7 +6,7 @@ class Projects::VariablesController < Projects::ApplicationController format.json do return head :ok if @project.update(variables_params) - render status: :bad_request, json: @project.errors.to_hash + render status: :bad_request, json: @project.errors.full_messages end end end |