Update docs

This commit is contained in:
github-actions
2025-04-22 16:39:54 +00:00
parent 0dda004024
commit da7fd0d3e5
230 changed files with 11375 additions and 1714 deletions

View File

@ -1,3 +1,10 @@
process.on('unhandledRejection', reason => {
throw new Error(reason);
// If the reason is already an Error object, throw it directly to preserve the stack trace.
if (reason instanceof Error) {
throw reason;
} else {
// If the reason is not an Error (e.g., a string, number, or other primitive),
// create a new Error object with the reason as its message.
throw new Error(`Unhandled rejection: ${reason}`);
}
});