make fatalquit actually use fatal

This commit is contained in:
Daylin Morgan 2024-09-23 12:33:05 -05:00
parent 42e9583808
commit 9ed82c1ae6
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -94,7 +94,7 @@ method log*(logger: FancyConsoleLogger, level: Level, args: varargs[string, `$`]
if level >= logger.levelThreshold:
let ln = substituteLog(logger.fmtStrs[level], level, args)
when defined(js): {.fatal: "handler does note support JS".}
when defined(js): {.fatal: "handler does not support JS".}
try:
let handle =
if logger.useStderr: stderr
@ -112,6 +112,6 @@ template errorQuit*(args: varargs[string, `$`]) =
quit QuitFailure
template fatalQuit*(args: varargs[string, `$`]) =
error args
fatal args
quit QuitFailure