summaryrefslogtreecommitdiff
path: root/libregex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-14 22:54:24 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-15 01:19:24 -0700
commitc2a04cf2cb447ffb3c24d91e7978ef170460bf46 (patch)
treee730276f3d31b8832af953db931f857500db7b85 /libregex
parentfd3494af3e5209e7e74662bc4066b28f58ff49cc (diff)
downloadmc-c2a04cf2cb447ffb3c24d91e7978ef170460bf46.tar.gz
Bio returns errors on failed opens.
Not option, but result.
Diffstat (limited to 'libregex')
-rw-r--r--libregex/redump.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/libregex/redump.myr b/libregex/redump.myr
index 1152831..7233864 100644
--- a/libregex/redump.myr
+++ b/libregex/redump.myr
@@ -45,11 +45,11 @@ const runall = {re, files
for f in files
match bio.open(f, bio.Rd)
- | `std.Some fd:
+ | `std.Ok fd:
dump(re, fd)
bio.close(fd)
- | `std.None:
- std.fatal("failed to open {}\n", f)
+ | `std.Fail m:
+ std.fatal("failed to open {}: {}\n", f, m)
;;
;;
}