lib/snapshot_archive/shell.rb in snapshot_archive-0.23.0 vs lib/snapshot_archive/shell.rb in snapshot_archive-0.24.0

- old
+ new

@@ -14,12 +14,12 @@ end def run(cmd) debug(cmd) - `#{cmd}` + `#{cmd} 2>&1` .split("\n") - .tap { raise CommandFailureError.new(cmd) unless $? == 0 } + .tap { raise CommandFailureError.new([cmd, _1].join("\n---\n")) unless $? == 0 } end def warn(msg) print "#{colorize(msg, :red)}\n" end