Optimize libsui error reporting
This commit is contained in:
parent
574c2aad82
commit
ce4d775981
2 changed files with 179 additions and 175 deletions
347
data/bindata.go
347
data/bindata.go
File diff suppressed because one or more lines are too long
|
|
@ -386,7 +386,12 @@ async function __sui_render(
|
||||||
// Set the response text to the elements
|
// Set the response text to the elements
|
||||||
elms.forEach((elm) => {
|
elms.forEach((elm) => {
|
||||||
elm.innerHTML = text;
|
elm.innerHTML = text;
|
||||||
__sui_event_init(elm);
|
try {
|
||||||
|
__sui_event_init(elm);
|
||||||
|
} catch (e) {
|
||||||
|
const message = e.message || "Failed to init events";
|
||||||
|
Promise.reject(message);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return Promise.resolve(text);
|
return Promise.resolve(text);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue