Skip to content

Commit

Permalink
slightly more verbose error message when building object file fails
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Nov 4, 2017
1 parent 75afe73 commit 4a6df04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4a6df04

Please sign in to comment.