Permalink
Browse files

Print a friendly message if something goes wrong with git fixing

  • Loading branch information...
olabini committed Apr 11, 2009
1 parent 7921f19 commit ffcb392c83c3e6876a5df368515fbc0cc6370e9b
Showing with 2 additions and 1 deletion.
  1. +2 −1 generate_filter_data.rb
View
@@ -5,7 +5,8 @@
begin
commit_lines = `git branch -v --no-color`.to_a
commit = commit_lines.grep(/^\* /).first.split[2]
-rescue Exception
+rescue Exception => e
+ $stderr.puts "Had a problem when finding out commit info - #{e} (THIS IS NOT A CATASTROPHIC ERROR, you can still build Ioke)"
commit = "???"
end

0 comments on commit ffcb392

Please sign in to comment.