aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authoriddev5 <ayushbardhan5@gmail.com>2022-03-18 13:10:41 +0530
committeriddev5 <ayushbardhan5@gmail.com>2022-03-27 18:19:55 +0530
commitdf544cace97b57b318dba439d4e67a3953388477 (patch)
tree96f3830cd7172d76e0a40c5e6f0b7b210fc7c87c /lib/std
parentd15bbebe2e6b8fcbfcd730a6c0d1be621b27045d (diff)
downloadzig-df544cace97b57b318dba439d4e67a3953388477.tar.gz
zig-df544cace97b57b318dba439d4e67a3953388477.zip
std: explicitly handle error.UnexpectedExitCode in build_runner
RunStep on unexpected exit code used to return error.UncleanExit, which was confusing and unclear. When it was changed, the error handling code in build_runner was not modified, which produced an error trace. This commit explicitly handles error.UnexpectedExitCode in build_runner so that the behavior now matches that of zig 0.8.1 after which it was regressed.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/special/build_runner.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/special/build_runner.zig b/lib/std/special/build_runner.zig
index eb83ef8fcd..bdc2d0457e 100644
--- a/lib/std/special/build_runner.zig
+++ b/lib/std/special/build_runner.zig
@@ -205,7 +205,7 @@ pub fn main() !void {
error.InvalidStepName => {
return usageAndErr(builder, true, stderr_stream);
},
- error.UncleanExit => process.exit(1),
+ error.UnexpectedExitCode, error.UncleanExit => process.exit(1),
else => return err,
}
};