summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-08-25 10:08:05 -0700
committerOri Bernstein <ori@eigenstate.org>2017-08-25 10:08:05 -0700
commit9369e24bf0f65400bd280575ea2d30feef3d4ba9 (patch)
treee12d3a1d2fc9db2981ca7699635204e35ca9a24c /mbld
parent7f4fa088626c24ac74cdfccab82a3d588ef34be6 (diff)
downloadmc-9369e24bf0f65400bd280575ea2d30feef3d4ba9.tar.gz
Print the directory where we found the bad lib.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/libs.myr12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbld/libs.myr b/mbld/libs.myr
index f99b0b2..c047641 100644
--- a/mbld/libs.myr
+++ b/mbld/libs.myr
@@ -53,15 +53,15 @@ const scrapelib = {b, lib, incs
(f, dir) = openlib(lib, incs)
match bio.getc(f)
| `bio.Ok 'U': /* ok */
- | `bio.Ok _: std.fput(1, "{}: not a usefile\n", lib)
- | `bio.Err e: std.fatal("{}: error reading: {}\n", lib, e)
- | `bio.Eof: std.fatal("{}: truncated\n", lib)
+ | `bio.Ok _: std.fput(1, "{}/{}: not a usefile\n", dir, lib)
+ | `bio.Err e: std.fatal("{}/{}: error reading: {}\n", dir, lib, e)
+ | `bio.Eof: std.fatal("{}/{}: truncated\n", dir, lib)
;;
match bio.getbe32(f)
| `bio.Ok Abiversion: /* nothing: version matches. */
- | `bio.Ok v: std.fput(1, "{}: mismatched abi {}\n", lib, v)
- | `bio.Err e: std.fatal("{}: error reading: {}\n", lib, e)
- | `bio.Eof: std.fatal("{}: truncated\n", lib)
+ | `bio.Ok v: std.fput(1, "{}/{}: mismatched abi {}\n", dir, lib, v)
+ | `bio.Err e: std.fatal("{}/{}: error reading: {}\n", dir, lib, e)
+ | `bio.Eof: std.fatal("{}/{}: truncated\n", dir, lib)
;;
std.slfree(rdstr(f))