mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
922eb7cd98
Before this commit, the error handling process was too naive: once an error occurs in a rendering, owl catches it, looks for a component that implements the catchError method, then calls it. However, in real life, we sometimes need to rethrow that error (or another one) to propagate the error to some parent handler. This error needs to be handled by the closest parent component that implements catchError. This is what this commit implements: it wraps the catchError call in a try/catch, then in case of errors, try to handle it by a parent.