Skip to content

Commit

Permalink
fix: zig 0.13.0-dev.46+3648d7df1
Browse files Browse the repository at this point in the history
InvalidBatchScriptArg
  • Loading branch information
WriteNaN committed May 3, 2024
1 parent 200ebfd commit adad357
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/lib/buzz_os.zig
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ fn handleSpawnError(ctx: *api.NativeCtx, err: anytype) void {
error.NameTooLong,
error.NoDevice,
error.NotDir,
error.InvalidBatchScriptArg,
error.ProcessFdQuotaExceeded,
error.SymLinkLoop,
error.SystemFdQuotaExceeded,
Expand All @@ -133,8 +134,6 @@ fn handleSpawnError(ctx: *api.NativeCtx, err: anytype) void {

error.OutOfMemory => @panic("Out of memory"),
error.Unexpected => ctx.vm.pushError("errors.UnexpectedError", null),

else => ctx.vm.pushError("errors.UnknownError", null)
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/lib/errors.buzz
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,4 @@ export object UnderflowError {
}
export object UnexpectedError {
str message = "UnexpectedError",
}
export object UnknownError {
str message = "UnknownError",
}

0 comments on commit adad357

Please sign in to comment.