aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api
diff options
context:
space:
mode:
authorRobert2017-08-21 20:24:50 +0200
committerRobert2017-08-22 09:37:30 +0200
commit61c4a303183284fc107325aeeef5ace7a3e68c0c (patch)
tree71bbfe5e5fe9eddb9e381aa0536b44476f461bc1 /app/controllers/api
parent327b1ec771a056451b0635ba80cc346fa1765299 (diff)
downloadchouette-core-61c4a303183284fc107325aeeef5ace7a3e68c0c.tar.bz2
Refs: #4273@3h;
Debugging Java Integration (ZipService -> HTTPService -> Object Creation) - Created an ErrorFormat concern to see what went wrong in the HTTP call as so many things can go wrong due to: * Timeout Issues * Illegal database setup or cleaning before tests
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/netex_imports_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/api/v1/netex_imports_controller.rb b/app/controllers/api/v1/netex_imports_controller.rb
index ba7777654..7dc18a7be 100644
--- a/app/controllers/api/v1/netex_imports_controller.rb
+++ b/app/controllers/api/v1/netex_imports_controller.rb
@@ -44,7 +44,10 @@ module Api
ReferentialMetadataKludge.make_metadata_from_name! netex_import_params['name'], referential_id: @new_referential.id
# <<< REMOVE ME !!!!
rescue ActiveRecord::RecordInvalid
- render json: {errors: @new_referential.errors}, status: 406
+ require 'pry'
+ binding.pry
+ # render json: {errors: @new_referential.errors}, status: 406
+ render json: {errors: ErrorFormat.detailed(@new_referential)}, status: 406
finish_action!
end