Skip to content

Commit 4a6df04

Browse files
committedNov 4, 2017
slightly more verbose error message when building object file fails
1 parent 75afe73 commit 4a6df04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/link.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ void codegen_link(CodeGen *g, const char *out_file) {
894894
Buf *o_file_path = g->link_objects.at(0);
895895
int err;
896896
if ((err = os_rename(o_file_path, &lj.out_file))) {
897-
zig_panic("unable to rename object file into final output: %s", err_str(err));
897+
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));
898898
}
899899
}
900900
return;

0 commit comments

Comments
 (0)