aboutsummaryrefslogtreecommitdiff
path: root/src/lib/syscall.zig
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-27 15:38:12 +0200
committerHimbeer <himbeer@disroot.org>2024-07-27 15:38:12 +0200
commita19ce5386c97151312d7cf5b54f404c96ca41365 (patch)
tree1de51119c85d51427069dce550ec640760836eca /src/lib/syscall.zig
parent69cb92899b7827efdeb9c625299eb4ec197abff7 (diff)
Rephrase panic messages
Fixes #62.
Diffstat (limited to 'src/lib/syscall.zig')
-rw-r--r--src/lib/syscall.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/syscall.zig b/src/lib/syscall.zig
index 0f1a44a..e4d5254 100644
--- a/src/lib/syscall.zig
+++ b/src/lib/syscall.zig
@@ -311,7 +311,7 @@ fn list(proc: *process.Info, trap_frame: *trap.Frame) void {
fn end(proc: *process.Info) void {
proc.terminate();
process.schedule() catch |err| {
- std.debug.panic("Unable to schedule because all processes are terminated: {}", .{err});
+ std.debug.panic("schedule error: {}", .{err});
};
}
@@ -360,7 +360,7 @@ fn terminate(proc: *const process.Info, trap_frame: *const trap.Frame) !void {
if (target.shouldTerminate(proc)) {
process.schedule() catch |err| {
- std.debug.panic("Unable to schedule because all processes are terminated: {}", .{err});
+ std.debug.panic("schedule error: {}", .{err});
};
}
}