Skip to content

Commit

Permalink
add debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjia committed Aug 3, 2012
1 parent 6b45f89 commit 576d869
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/unwatch.rb
Expand Up @@ -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
Expand Down

0 comments on commit 576d869

Please sign in to comment.