summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-10-06 13:32:25 -0700
committerOri Bernstein <ori@eigenstate.org>2015-10-06 13:32:25 -0700
commit3400b0428b9147012553c6f2280147d8dc99bbf1 (patch)
tree0a8b3d4e904963535bff3da1b9d81a1f51084261 /mbld
parentc4d04d5ed7a782baf87e5beea2a2d95e31bebc5b (diff)
downloadmc-3400b0428b9147012553c6f2280147d8dc99bbf1.tar.gz
Fix up error handling for syswrap+posixy.myr
Diffstat (limited to 'mbld')
-rw-r--r--mbld/build.myr8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbld/build.myr b/mbld/build.myr
index 055f8b7..7d2b804 100644
--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -479,12 +479,12 @@ const isfresh = {src, dst
up to date.
*/
match std.fmtime(src)
- | `std.Some mt: srcmt = mt
- | `std.None: std.fatal("could not stat {}\n", src)
+ | `std.Ok mt: srcmt = mt
+ | `std.Fail e: std.fatal("could not stat {}: {}\n", src, e)
;;
match std.fmtime(dst)
- | `std.Some mt: dstmt = mt
- | `std.None: -> false
+ | `std.Ok mt: dstmt = mt
+ | `std.Fail e: -> false
;;
-> srcmt <= dstmt
}