authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-11-03 20:07:32-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-11-03 20:07:32-04:00
log4a6df04f7568dd84245b513bfd8d245f31fa8f04
treefb8153d79c40c84d0cd2295ee7d9ed27556d6710
parent75afe73c662307fe07283e497da38adce676de01

slightly more verbose error message when building object file fails


1 files changed, 1 insertions(+), 1 deletions(-)

src/link.cpp+1-1
...@@ -894,7 +894,7 @@ void codegen_link(CodeGen *g, const char *out_file) {...@@ -894,7 +894,7 @@ void codegen_link(CodeGen *g, const char *out_file) {
894 Buf *o_file_path = g->link_objects.at(0);894 Buf *o_file_path = g->link_objects.at(0);
895 int err;895 int err;
896 if ((err = os_rename(o_file_path, &lj.out_file))) {896 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));
898 }898 }
899 }899 }
900 return;900 return;