[ARVADOS] updated: 23fd8b137488baeb3138e2127294e8e14917d3ed
git at public.curoverse.com
git at public.curoverse.com
Tue Jun 10 14:33:12 EDT 2014
Summary of changes:
services/api/app/controllers/arvados/v1/jobs_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 23fd8b137488baeb3138e2127294e8e14917d3ed (commit)
from 82c4697bf24b10f3fb66d303ae73499095b5742a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 23fd8b137488baeb3138e2127294e8e14917d3ed
Author: Ward Vandewege <ward at curoverse.com>
Date: Tue Jun 10 14:32:09 2014 -0400
Fix inconsistent JSON error return behavior on job create.
refs #3004
diff --git a/services/api/app/controllers/arvados/v1/jobs_controller.rb b/services/api/app/controllers/arvados/v1/jobs_controller.rb
index 9043ac4..ffa78b9 100644
--- a/services/api/app/controllers/arvados/v1/jobs_controller.rb
+++ b/services/api/app/controllers/arvados/v1/jobs_controller.rb
@@ -9,7 +9,7 @@ class Arvados::V1::JobsController < ApplicationController
[:repository, :script, :script_version, :script_parameters].each do |r|
if !resource_attrs[r]
return render json: {
- :error => "#{r} attribute must be specified"
+ :errors => ["#{r} attribute must be specified"]
}, status: :unprocessable_entity
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list