mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] component: propagate errors to caller
Errors from mounted/willPatch/patched should be returned to caller (either mount or render functions) part of #410
This commit is contained in:
@@ -59,7 +59,11 @@ export class Scheduler {
|
||||
}
|
||||
if (task.fiber.counter === 0) {
|
||||
if (!task.fiber.error) {
|
||||
task.fiber.complete();
|
||||
try {
|
||||
task.fiber.complete();
|
||||
} catch (e) {
|
||||
task.fiber.handleError(e);
|
||||
}
|
||||
}
|
||||
task.callback();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user