2
0
mirror of https://github.com/esiur/iui.git synced 2026-04-04 15:08:21 +00:00
This commit is contained in:
2023-01-12 15:34:41 +03:00
parent 1294b0f413
commit 12627b1896
4 changed files with 43 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ export class Binding {
if (context.error != undefined)
{
if (thisArg instanceof IUIElement){
thisArg.setError(context.error);
}
console.log("Execution failed", context.error.name + ": " + context.error.message, this.script, this.target);
return;
}
@@ -192,6 +196,11 @@ export class Binding {
{
return await context.value;
} catch(ex) {
if (thisArg instanceof IUIElement){
thisArg.setError(ex);
}
console.log("Execution failed", ex.name + ": " + ex.message, this.script, this.target);
}
}