mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Replace exit with std.process.exit
`std.os.exit` got removed in [cd62005](cd62005f19 (diff-4284cdf770ea88be46f4aab7f82ed3c58821e4b3433b7c6152278a9911348dc5)
)
This commit fixes this by replacing all `std.os.exit` calls with
`std.process.exit`.
This commit is contained in:
parent
0de6445539
commit
646c45ea65
@ -51,7 +51,7 @@ pub fn main() !void {
|
||||
|
||||
run(allocator, options, writer) catch |err| {
|
||||
switch (err) {
|
||||
error.JetzigCommandError => std.os.exit(1),
|
||||
error.JetzigCommandError => std.process.exit(1),
|
||||
else => return err,
|
||||
}
|
||||
};
|
||||
|
@ -134,6 +134,6 @@ pub fn run(
|
||||
} else {
|
||||
std.debug.print("Unable to locate compiled executable. Exiting.", .{});
|
||||
util.printFailure();
|
||||
std.os.exit(1);
|
||||
std.process.exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ pub fn run(
|
||||
const exe_path = try util.locateExecutable(allocator, cwd, .{});
|
||||
if (exe_path == null) {
|
||||
std.debug.print("Unable to locate compiled executable. Exiting.\n", .{});
|
||||
std.os.exit(1);
|
||||
std.process.exit(1);
|
||||
}
|
||||
|
||||
const argv = &[_][]const u8{exe_path.?};
|
||||
@ -94,7 +94,7 @@ pub fn run(
|
||||
|
||||
if (!options.reload) {
|
||||
const term = try process.wait();
|
||||
std.os.exit(term.Exited);
|
||||
std.process.exit(term.Exited);
|
||||
}
|
||||
|
||||
while (true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user