summaryrefslogtreecommitdiff
path: root/lib/bio/test/bio-write.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bio/test/bio-write.myr')
-rw-r--r--lib/bio/test/bio-write.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bio/test/bio-write.myr b/lib/bio/test/bio-write.myr
index cbe7441..27a3f12 100644
--- a/lib/bio/test/bio-write.myr
+++ b/lib/bio/test/bio-write.myr
@@ -8,8 +8,8 @@ const main = {
var buf : byte[64*1024]
match bio.create("tmpout/test-write", bio.Wr, 0o644)
- | `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)
;;
/* write a 5 byte chunk */