Remove reason when none is specified

This commit is contained in:
Nico Elbers 2024-06-05 23:56:15 +02:00
parent fc6ff3af11
commit fa5006819f
No known key found for this signature in database
GPG Key ID: 519CE81FDA71EE73

View File

@ -839,11 +839,10 @@ fn printStepStatus(
},
.skipped, .skipped_oom => |skip| {
try ttyconf.setColor(stderr, .yellow);
try stderr.writeAll(" skipped: ");
try stderr.writeAll(" skipped");
if (s.result_skip_reason) |reason| {
try stderr.writeAll(": ");
try stderr.writeAll(reason);
} else {
try stderr.writeAll("Unspecified");
}
if (skip == .skipped_oom) {
try stderr.writeAll(" (not enough memory)");