Unhandled Promise rejections are silently ignored by default.
failAsync rethrows the error, ensuring it results in an unhandled exception.
Parameters
error: any
Returns void
Remarks
Note: error is not rethrown immediately, some pending JS code might still be executed.
Use it as a default .catch() handler when no other error handling is provided.
Unhandled Promise rejections are silently ignored by default.
failAsyncrethrows the error, ensuring it results in an unhandled exception.