Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add debug line

  • Loading branch information...
commit 576d86971f61e9a9c41abeebd472f72c4a0b63a9 1 parent 6b45f89
@zhengjia authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/unwatch.rb
View
3  lib/unwatch.rb
@@ -45,9 +45,10 @@ def send_request(uri, method='get')
begin
oauth_response = access_token.send(method, uri, headers)
JSON.parse(oauth_response.body) unless oauth_response.body.empty?
- rescue OAuth2::Error
+ rescue OAuth2::Error => e
session[:access_token] = nil
status 503
+ puts e.inspect
halt %(<p>#{$!}</p><p><a href="/auth/github">Retry</a></p>)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.