mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 09:25:11 +00:00
slightly more verbose error message when building object file fails
This commit is contained in:
parent
75afe73c66
commit
4a6df04f75
@ -894,7 +894,7 @@ void codegen_link(CodeGen *g, const char *out_file) {
|
||||
Buf *o_file_path = g->link_objects.at(0);
|
||||
int err;
|
||||
if ((err = os_rename(o_file_path, &lj.out_file))) {
|
||||
zig_panic("unable to rename object file into final output: %s", err_str(err));
|
||||
zig_panic("unable to rename object file %s into final output %s: %s", buf_ptr(o_file_path), buf_ptr(&lj.out_file), err_str(err));
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user