A function that maps an error to an Abort with the stack trace when coming from the CLI.
Error to be mapped.
A promise that resolves with the new error object.
A function that maps an error to an Abort with the stack trace when coming from the CLI.