Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add more info to the exception

  • Loading branch information...
commit a6926acf8af361a335c6adb1ca9e33f41949f3b1 1 parent 5bae67b
@pedrodelgallego authored
Showing with 2 additions and 4 deletions.
  1. +0 −1  examples/views/login.haml
  2. +2 −3 lib/rack-rpx.rb
View
1  examples/views/login.haml
@@ -4,6 +4,5 @@
RPXNOW.overlay = true;
RPXNOW.language_preference = 'en';
-
%a.rpxnow{ :href => login_widget_url("olokun"), :onclick => "return false;" }
Sign In
View
5 lib/rack-rpx.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.