aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-03 20:07:32 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-11-03 20:07:32 -0400
commit4a6df04f7568dd84245b513bfd8d245f31fa8f04 (patch)
treefb8153d79c40c84d0cd2295ee7d9ed27556d6710 /src/link.cpp
parent75afe73c662307fe07283e497da38adce676de01 (diff)
downloadzig-4a6df04f7568dd84245b513bfd8d245f31fa8f04.tar.gz
zig-4a6df04f7568dd84245b513bfd8d245f31fa8f04.zip
slightly more verbose error message when building object file fails
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp
index d73ee4ea96..1a166a444f 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -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;