summaryrefslogtreecommitdiff
path: root/lib/bio/test/bio-unitwr.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bio/test/bio-unitwr.myr')
-rw-r--r--lib/bio/test/bio-unitwr.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bio/test/bio-unitwr.myr b/lib/bio/test/bio-unitwr.myr
index 8a1774c..1a78e97 100644
--- a/lib/bio/test/bio-unitwr.myr
+++ b/lib/bio/test/bio-unitwr.myr
@@ -4,8 +4,8 @@ use bio
const main = {
var f
match bio.create("tmpout/test-unitwr", 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: {}\n", m)
;;
bio.putb(f, 42)
bio.putc(f, 'ה')