You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a bit confused on how I can get consola.fatal to log and then fail the process. I was surprised to see that, as far as I can tell, fatal is identical to error? I would expect different behavior, such as exiting by default!
Additional context
While searching this repo for this behavior I came across #30 (comment):
consola.on('fatal',(message)=>{process.exit(1)})
I really like this (nonexistent) API. I found _wrapLogFn but it doesn't seem applicable here.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
N/A
Reproduction
N/A
Describe the bug
I'm a bit confused on how I can get
consola.fatal
to log and then fail the process. I was surprised to see that, as far as I can tell, fatal is identical to error? I would expect different behavior, such as exiting by default!Additional context
While searching this repo for this behavior I came across #30 (comment):
I really like this (nonexistent) API. I found
_wrapLogFn
but it doesn't seem applicable here.Logs
No response
The text was updated successfully, but these errors were encountered: