summaryrefslogtreecommitdiff
path: root/lib/bio/test/bio-create.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bio/test/bio-create.myr')
-rw-r--r--lib/bio/test/bio-create.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bio/test/bio-create.myr b/lib/bio/test/bio-create.myr
index 6954e32..a15c9f0 100644
--- a/lib/bio/test/bio-create.myr
+++ b/lib/bio/test/bio-create.myr
@@ -6,8 +6,8 @@ const main = {
std.mkdir("tmpout", 0o755);
match bio.create("tmpout/test-create", bio.Wr, 0o644)
- | `std.Some bio: f = bio
- | `std.None: std.fatal(1, "Failed to open file\n")
+ | `std.Ok bio: f = bio
+ | `std.Fail m: std.fatal("Failed to open file: {}\n", m)
;;
bio.close(f)
}