Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unclear error messages #1550

Open
ged-odoo opened this issue Oct 25, 2023 · 0 comments
Open

unclear error messages #1550

ged-odoo opened this issue Oct 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ged-odoo
Copy link
Contributor

If I add a throw error in the setup of a component (see playground example 1) I have the following confusing error:

owl.js:1576 Uncaught (in promise) Error: An error occured in the owl lifecycle (see this Error's "cause" property)
    at handleError (owl.js:1576:31)
    at App.handleError (owl.js:5784:16)
    at MountFiber._render (owl.js:1722:26)
    at MountFiber.render (owl.js:1711:14)
    at ComponentNode.initiateRender (owl.js:2375:19)
handleError @ owl.js:1576
handleError @ owl.js:5784
_render @ owl.js:1722
render @ owl.js:1711
initiateRender @ owl.js:2375
await in initiateRender (async)
mountComponent @ owl.js:2359
mountNode @ owl.js:5705
mount @ owl.js:5676
mount @ owl.js:5791
(anonymous) @ VM103:37
owl.js:1576 Uncaught (in promise) Error: An error occured in the owl lifecycle (see this Error's "cause" property)
    at handleError (owl.js:1576:31)
    at App.handleError (owl.js:5784:16)
    at MountFiber._render (owl.js:1722:26)
    at MountFiber.render (owl.js:1711:14)
    at ComponentNode.initiateRender (owl.js:2375:19)

I think that it was clearer before, i would like to see in the traceback that the error comes from the setup function of the component.

Another example: if there is an error in a template, (see playground ex2)
we get the following traceback:

owl.js:1576 Uncaught (in promise) Error: An error occured in the owl lifecycle (see this Error's "cause" property)
    at handleError (owl.js:1576:31)
    at App.handleError (owl.js:5784:16)
    at Fiber._render (owl.js:1722:26)
    at Fiber.render (owl.js:1711:14)
    at ComponentNode.initiateRender (owl.js:2375:19)
handleError @ owl.js:1576
handleError @ owl.js:5784
_render @ owl.js:1722
render @ owl.js:1711
initiateRender @ owl.js:2375
await in initiateRender (async)
(anonymous) @ owl.js:5777
template @ VM240:10
_render @ owl.js:1719
render @ owl.js:1711
initiateRender @ owl.js:2375
await in initiateRender (async)
mountComponent @ owl.js:2359
mountNode @ owl.js:5705
mount @ owl.js:5676
mount @ owl.js:5791
(anonymous) @ VM238:36
owl.js:1576 Uncaught (in promise) Error: An error occured in the owl lifecycle (see this Error's "cause" property)
    at handleError (owl.js:1576:31)
    at App.handleError (owl.js:5784:16)
    at Fiber._render (owl.js:1722:26)
    at Fiber.render (owl.js:1711:14)
    at ComponentNode.initiateRender (owl.js:2375:19)

not very useful...

@ged-odoo ged-odoo changed the title unclear error message unclear error messages Oct 25, 2023
@sdegueldre sdegueldre added the enhancement New feature or request label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants