mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
983b9f996d
Owl provides a way to manage errors occuring in component lifecycle methods. However, before this commit, these errors were not always logged or visible, which is very annoying in the common developer workflow (doing something, checking it works, seeing no error but a broken interface). In this commit, we make sure errors are logged/throws in all cases: - if an error occurs in a mounting operation => the promise is rejected (which will log the error) - if an error occurs after the mounting operation and is not handled by any error handlers => the error will be logged (with console.error). Also, in that case, this commit adds a warning to explain that owl destroys the root component, which will help developers understanding what happened.