Preparing search index...
The search index is not available
cli-belt - v2.0.2
cli-belt
error
Function error
error
(
err
,
options
?
)
:
void
Formats and prints an error message.
options
:
exit
: if passed, it will exit the process with that code.
logger
: if passed, it will use that instead of console.error
debug
: if true, it will also log the error itself after its message -if logger is passed, it will use logger.debug instead of console.debug
Parameters
err
:
Error
Optional
options
:
ErrorOptions
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
cli-belt - v2.0.2
Loading...
Formats and prints an error message.
options
:exit
: if passed, it will exit the process with that code.logger
: if passed, it will use that instead of console.errordebug
: if true, it will also log the error itself after its message -if logger is passed, it will use logger.debug instead of console.debug