bin/git-flattr in git-flattr-0.0.1 vs bin/git-flattr in git-flattr-0.0.2
- old
+ new
@@ -104,11 +104,11 @@
flattr.flattr Git.github_url
thing = flattr.thing_lookup Git.github_url
puts "Flattred #{Git.github_url} (#{thing.link})!"
exit 0
-rescue Flattr::Error::Unauthorized
- error "You are unauthorized to access the resource on Flattr."
+rescue Flattr::Error::Unauthorized => e
+ error e.message
exit 1
rescue Flattr::Error::Forbidden => e
error e.message
exit 1
end