diff options
author | 2022-12-02 00:05:33 -0800 | |
---|---|---|
committer | 2022-12-02 00:05:33 -0800 | |
commit | 851b8acb762e9a2741a6d03bdf218c6810572f3c (patch) | |
tree | 9f99b4bae885321de04a29eb643440f1233b2698 | |
parent | 7a158e68ae933779b4fad58ef352dc13e1d9dbc1 (diff) | |
download | bun-851b8acb762e9a2741a6d03bdf218c6810572f3c.tar.gz bun-851b8acb762e9a2741a6d03bdf218c6810572f3c.tar.zst bun-851b8acb762e9a2741a6d03bdf218c6810572f3c.zip |
Fix incorrect panic in spawnSync
-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 0f70a763c..400a49215 100644 --- a/src/bun.js/api/bun/subprocess.zig +++ b/src/bun.js/api/bun/subprocess.zig @@ -1375,7 +1375,7 @@ pub const Subprocess = struct { )) { .result => {}, .err => |err| { - if (err.getErrno() == .SRCH) { + if (err.getErrno() != .SRCH) { @panic("This shouldn't happen"); } |