diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-03-07 12:43:15 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-03-07 14:37:21 +0000 |
| commit | 1d3af8e9570b31318386c09a3410271435e60774 (patch) | |
| tree | e45695e499d927c0774d3a84fe3d9293c8914282 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 6ad94ac6ef2d0ad5d849f831b6f9e6cb35b917d4 (diff) | |
[FIX] web: handle unhandled rejections in the frontend
Following of https://github.com/odoo/odoo/pull/28457. Promises which
are rejected are acting the same way as exceptions and thus have to be
catched. The Odoo `guardedCatch` method is not stopping the exception
though. In the backend, unhandled promise rejections are catched by the
CatchManager, which then ignore them.
This commit makes the frontend act the same way regarding unhandled
promise rejections. We might want to share the crash manager behavior
someday.
Part of https://github.com/odoo/odoo/pull/31664
closes odoo/odoo#31664
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
