summaryrefslogtreecommitdiff
path: root/lib/bio/test/bio-peek.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bio/test/bio-peek.myr')
-rw-r--r--lib/bio/test/bio-peek.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bio/test/bio-peek.myr b/lib/bio/test/bio-peek.myr
index 2125c9b..1f80f06 100644
--- a/lib/bio/test/bio-peek.myr
+++ b/lib/bio/test/bio-peek.myr
@@ -7,8 +7,8 @@ const main = {
var buf : byte[64*1024]
match bio.open("data/datafile", bio.Rd)
- | `std.Some bio: f = bio
- | `std.None: std.fatal(1, "Unable to open data file")
+ | `std.Ok bio: f = bio
+ | `std.Fail m: std.fatal("Unable to open data file: {}", m)
;;
std.assert(peekb(f) == 0x30, "wrong byte value read from datafile")