Skip to content

Commit 53258f7

Browse files
committed
Debug failures on omnibus compilations
1 parent 9c85a94 commit 53258f7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tool/file2lastrev.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def self.format=(format)
9999
@output.write(data, overwrite: true, create_only: create_only)
100100
rescue => e
101101
next if @suppress_not_found and VCS::NotFoundError === e
102+
raise
102103
warn "#{File.basename(Program)}: #{e.message}"
103104
ok = false
104105
end

tool/lib/vcs.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def popen(*args)
5353
module DebugSystem
5454
def system(*args, exception: true, **opts)
5555
VCS.dump(args, "args: ") if $DEBUG
56-
super(*args, exception: exception, **opts)
56+
ret = super(*args)
57+
raise "Command failed with status (#$?): #{args.inspect}" if exception and !ret
58+
ret
5759
end
5860
end
5961

0 commit comments

Comments
 (0)