mirror of
https://github.com/ziglang/zig.git
synced 2026-02-09 19:10:48 +00:00
non-zero exit when build.zig cannot be created
Make the stage 1 compiler exit with a non-zero status code when `zig build --init` cannot create a new build.zig file.
This commit is contained in:
parent
5b00dee0c2
commit
db70b909a0
@ -452,10 +452,11 @@ int main(int argc, char **argv) {
|
||||
|
||||
if ((err = os_copy_file(build_template_path, &build_file_abs))) {
|
||||
fprintf(stderr, "Unable to write build.zig template: %s\n", err_str(err));
|
||||
return EXIT_FAILURE;
|
||||
} else {
|
||||
fprintf(stderr, "Wrote build.zig template\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
fprintf(stderr,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user