summaryrefslogtreecommitdiff
path: root/lib/date
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-10 01:00:31 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-10 01:00:31 -0800
commit94448201527e0c47c2924219bf1a8d0c0c2406b7 (patch)
treee52884b87a238d809dc7f7a32253737b0f236811 /lib/date
parent7e54db408cbfd206f16775070aef8fb0115587f7 (diff)
downloadmc-94448201527e0c47c2924219bf1a8d0c0c2406b7.tar.gz
Die on bad options, and use a \n in the format string.
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/fmt.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date/fmt.myr b/lib/date/fmt.myr
index 34bdaa4..064ff60 100644
--- a/lib/date/fmt.myr
+++ b/lib/date/fmt.myr
@@ -26,7 +26,7 @@ const sbfmt = {sb, ap, opts
| ("t", ""): fmt = Timefmt
| ("D", ""): fmt = Datetimefmt
| ("f", opt): fmt = opt
- | _: std.fatal("unknown option")
+ | _: std.die("unknown option\n")
;;
;;
datefmt(sb, fmt, d)