summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-08 10:57:44 +0200
committerAzul <azul@leap.se>2014-07-14 10:49:39 +0200
commit4dbfdf30c3235eb19e4f0ad959f65125ed18b39a (patch)
treeb823474a900c43efb84d62dd122f88453e80a494 /app
parentb79a97235b5474e4775c07be1fb7c6208a29f5b4 (diff)
render valid json error if provider file not found
Diffstat (limited to 'app')
-rw-r--r--app/controllers/static_config_controller.rb4
1 files changed, 2 insertions, 2 deletions
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