Skip to content
Browse files

Merge pull request #12 from elskwid/load-error

Map LoadError to 'e' when Grit is missing
  • Loading branch information...
2 parents 1c37b45 + 29a5560 commit 78b7ed7e62a97ab8e9033e942ccb71a5e3fb9e08 anttipitkanen committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/flowdock/capistrano.rb
View
2 lib/flowdock/capistrano.rb
@@ -24,7 +24,7 @@
require 'grit'
set :repo, Grit::Repo.new(".")
config = Grit::Config.new(repo)
- rescue LoadError
+ rescue LoadError => e
puts "Flowdock: you need to have Grit gem installed: #{e.to_s}"
rescue => e
puts "Flowdock: error in fetching your git repository information: #{e.to_s}"

0 comments on commit 78b7ed7

Please sign in to comment.
Something went wrong with that request. Please try again.