Permalink
Browse files

add more info to the exception

  • Loading branch information...
pedrodelgallego committed Jan 14, 2010
1 parent 5bae67b commit a6926acf8af361a335c6adb1ca9e33f41949f3b1
Showing with 2 additions and 4 deletions.
  1. +0 −1 examples/views/login.haml
  2. +2 −3 lib/rack-rpx.rb
@@ -4,6 +4,5 @@
RPXNOW.overlay = true;
RPXNOW.language_preference = 'en';
-
%a.rpxnow{ :href => login_widget_url("olokun"), :onclick => "return false;" }
Sign In
View
@@ -53,7 +53,7 @@ def credentials(token)
http.use_ssl = true if u.scheme == 'https'
json = JSON.parse(http.request(req).body)
- raise LoginFailedError, 'Cannot log in. Try another account!' unless json['stat'] == 'ok'
+ raise LoginFailedError, 'Cannot log in. Try another account! #{json.inspect}' unless json['stat'] == 'ok'
json
end
end
@@ -63,8 +63,7 @@ def initialize app, *options
OPTIONS.merge! options.pop
OPTIONS.each do |k,v|
Rack::Rpx.send(:define_method, k.to_s) {OPTIONS[k]}
- end
-
+ end
end
def call env

0 comments on commit a6926ac

Please sign in to comment.