Skip to content
Browse files

abort() > crap_out()

  • Loading branch information...
1 parent f1c1644 commit a80e66cfba842d2a797ef87ff45124f77cc16fa5 @webmat committed Dec 6, 2011
Showing with 2 additions and 7 deletions.
  1. +2 −7 bin/grb
View
9 bin/grb
@@ -7,13 +7,8 @@ require "#{File.dirname(THIS_FILE)}/../lib/git_remote_branch"
include GitRemoteBranch
-def crap_out(message)
- puts message
- exit 1
-end
-
unless git_found?
- crap_out <<-MSG
+ abort <<-MSG
The git executable (#{GIT}) could not be found by git_remote_branch.
Make sure your PATH variable contains the path for git's binary.
Your PATH:
@@ -24,7 +19,7 @@ end
begin
p = read_params(ARGV)
rescue InvalidBranchError => ex
- crap_out ex.message
+ abort ex.message
end
$WHISPER = p[:silent]

0 comments on commit a80e66c

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