We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c85a94 commit 53258f7Copy full SHA for 53258f7
2 files changed
tool/file2lastrev.rb
@@ -99,6 +99,7 @@ def self.format=(format)
99
@output.write(data, overwrite: true, create_only: create_only)
100
rescue => e
101
next if @suppress_not_found and VCS::NotFoundError === e
102
+ raise
103
warn "#{File.basename(Program)}: #{e.message}"
104
ok = false
105
end
tool/lib/vcs.rb
@@ -53,7 +53,9 @@ def popen(*args)
53
module DebugSystem
54
def system(*args, exception: true, **opts)
55
VCS.dump(args, "args: ") if $DEBUG
56
- super(*args, exception: exception, **opts)
+ ret = super(*args)
57
+ raise "Command failed with status (#$?): #{args.inspect}" if exception and !ret
58
+ ret
59
60
61
0 commit comments