| ... | @@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct { | ... | @@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct { |
| 1512 | switch (term) { | 1512 | switch (term) { |
| 1513 | .Exited => |code| { | 1513 | .Exited => |code| { |
| 1514 | if (code != 0) { | 1514 | if (code != 0) { |
| 1515 | warn("Compilation failed with exit code {}\n", .{code}); | 1515 | warn("Compilation failed with exit code {}\n{}\n", .{ code, stderr_buf.toSliceConst() }); |
| 1516 | printInvocation(zig_args.toSliceConst()); | 1516 | printInvocation(zig_args.toSliceConst()); |
| 1517 | return error.TestFailed; | 1517 | return error.TestFailed; |
| 1518 | } | 1518 | } |