lib/git_trend/cli.rb in git-trend-0.1.0 vs lib/git_trend/cli.rb in git-trend-0.1.1
- old
+ new
@@ -24,10 +24,10 @@
scraper = Scraper.new
projects = scraper.get(options[:language], options[:since])
render(projects, !!options[:description])
rescue => e
say "An unexpected #{e.class} has occurred.", :red
- say e.message
+ say e.message unless e.class.to_s == e.message
end
desc :languages, 'Show selectable languages'
def languages
scraper = Scraper.new