From 4dbfdf30c3235eb19e4f0ad959f65125ed18b39a Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 8 Jul 2014 10:57:44 +0200 Subject: render valid json error if provider file not found --- app/controllers/static_config_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/controllers/static_config_controller.rb b/app/controllers/static_config_controller.rb index c669316..450cbb2 100644 --- a/app/controllers/static_config_controller.rb +++ b/app/controllers/static_config_controller.rb @@ -17,8 +17,8 @@ class StaticConfigController < ActionController::Base render :text => File.read(PROVIDER_JSON) end else - render :text => 'not found', :status => 404 + render json: {error: 'not found'}, status: 404 end end -end \ No newline at end of file +end -- cgit v1.2.3