Skip to content

Commit

Permalink
Added error checking during [initial] installation of gems
Browse files Browse the repository at this point in the history
  • Loading branch information
othatbrian committed Feb 8, 2011
1 parent c769eba commit 75ad81f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/refinerycms
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ module Refinery

# Install!
run_command("bundle install")
if $? != 0
puts "Unable to install necessary gems!"
puts "Removing #{@app_path}!"
FileUtils.rm_rf @app_path
exit 1
end
end

def output!
Expand Down

0 comments on commit 75ad81f

Please sign in to comment.