Permalink
Browse files

Fix error on new box

  • Loading branch information...
Stephen Anderson and Paul Kauders bendyworks
Stephen Anderson and Paul Kauders authored and bendyworks committed Jul 19, 2011
1 parent 9864770 commit 7a17e4649db525e2e1378052870cf564118d672c
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/hitch.rb
View
@@ -1,5 +1,6 @@
require 'highline'
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib hitch options]))
+require 'yaml'
module Hitch
@@ -134,11 +135,13 @@ def my_pairs_and_i
end
def group_prefix
- personal_info['group_email'].split('@').first
+ group_email = personal_info['group_email']
+ group_email.split('@').first if group_email
end
def group_domain
- personal_info['group_email'].split('@').last
+ group_email = personal_info['group_email']
+ group_email.split('@').last if group_email
end
def clean_hitch_authors
@@ -273,7 +276,7 @@ def manage_hitchrc
write_hitchrc
end
rescue EOFError # HighLine throws this if @input.eof?
- break
+ raise 'Missing .hitchrc file'
end
print_current_status

0 comments on commit 7a17e46

Please sign in to comment.