From b14271342a699e3c33612ddf0f5928f1649624bc Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Mon, 27 Jun 2011 17:09:05 -0700 Subject: [PATCH] Give more information in error message --- app/controllers/authorizations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/authorizations_controller.rb b/app/controllers/authorizations_controller.rb index c469ca8fb..9ada59bf3 100644 --- a/app/controllers/authorizations_controller.rb +++ b/app/controllers/authorizations_controller.rb @@ -79,7 +79,7 @@ class AuthorizationsController < ApplicationController nonce = split[3] return 'blank public key' if public_key.n.nil? - return 'the app url in the manifest does not match the url passed in the parameters' if manifest["application_base_url"] != app_url + return "the app url in the manifest (#{manifest['application_base_url']}) does not match the url passed in the parameters (#{app_url})." if manifest["application_base_url"] != app_url return 'key too small, use at least 2048 bits' if public_key.n.num_bits < 2048 return "invalid time" unless valid_time?(time) return 'invalid nonce' unless valid_nonce?(nonce)