lib/devinstall/utils.rb in devinstall-1.2.0 vs lib/devinstall/utils.rb in devinstall-1.2.1
- old
+ new
@@ -12,15 +12,15 @@
end
end
end
def command(cmd)
- puts cmd if $verbose
+ puts "\t#{cmd}" if $verbose
ret=''
unless $dry
ret = `#{cmd}`
if $?.exitstatus != 0 ## return failure
- err=CommandError.new "ErrorRunning #{cmd}"
+ err=CommandError.new "Error Running:\t #{cmd}"
err.command_output = ret
err.return_code = $?.exitstatus
raise err
end
end