enhance(frontend): bootでonunhandledrejectionでrenderErrorする場合、PromiseRejectionEvent.reasonを渡すように

This commit is contained in:
tamaina 2025-09-18 19:20:03 +09:00
parent 6e3354f95d
commit 36fa6386b6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
}; };
window.onunhandledrejection = (e) => { window.onunhandledrejection = (e) => {
console.error(e); console.error(e);
renderError('SOMETHING_HAPPENED_IN_PROMISE', e); renderError('SOMETHING_HAPPENED_IN_PROMISE', e.reason || e);
}; };
let forceError = localStorage.getItem('forceError'); let forceError = localStorage.getItem('forceError');