mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: support window.captureException
This commit is contained in:
1 parent
87b980f87d
commit
cad010482b
5 files changed
+7
-1
No files matched your search
@@ -64,6 +64,7 @@ async function load() {
|
||||
try {
|
||||
await func(currentPageName, loadPage(1, type));
|
||||
} catch (e) {
|
||||
(window as any).captureException?.(e);
|
||||
Notification.warn(`Failed to call '${type}Loading' of ${page.name}`);
|
||||
console.error(`Failed to call '${type}Loading' of ${page.name}\n${e.stack}`);
|
||||
console.error(e);
|
||||
|
||||
Reference in new issue
Block a user