diff options
author | 2022-11-28 23:47:25 -0800 | |
---|---|---|
committer | 2022-11-28 23:48:04 -0800 | |
commit | d28247573cd8e019b835452bbec191dadc38d86d (patch) | |
tree | dcea9b322f510561becf5e480053d964abcc1a56 /src/bun.js/api | |
parent | 56884b5f1dd60a2673ef765a5556bd37d00c1292 (diff) | |
download | bun-d28247573cd8e019b835452bbec191dadc38d86d.tar.gz bun-d28247573cd8e019b835452bbec191dadc38d86d.tar.zst bun-d28247573cd8e019b835452bbec191dadc38d86d.zip |
Handle when the process already exited immediately
Diffstat (limited to 'src/bun.js/api')
-rw-r--r-- | src/bun.js/api/bun/subprocess.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/api/bun/subprocess.zig b/src/bun.js/api/bun/subprocess.zig index d803704f3..d4fc06e2d 100644 --- a/src/bun.js/api/bun/subprocess.zig +++ b/src/bun.js/api/bun/subprocess.zig @@ -1320,7 +1320,7 @@ pub const Subprocess = struct { )) { .result => {}, .err => |err| { - if (err.getErrno() == .SRCH) { + if (err.getErrno() != .SRCH) { @panic("This shouldn't happen"); } |