-
Notifications
You must be signed in to change notification settings - Fork 344
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
have better error messages #443
Comments
Another problematic error:
This error is a little bit better out of the box because it tells on the render of which component it happened. But of course the problematic line on the template would be better here too. |
fun fact: i think that your second error is a little bit better because it was obtained in Chrome, and your first error comes from firefox... This is actually quite annoying, it is difficult to work with different browsers. There are no good way to introspect an error, so we have to try to parse the message string or the stack. |
Different browsers indeed. |
well, after working on this for a time, I can say that handling/introspecting errors in JS is really really really bad.
All of that together, I really do not see how I can provide a decent error in all cases... So, i will stop working on this for now, unless someone has an idea... |
This is probably a terrible idea, but maybe keep variables names when generating variables in compiled code to help dev finding the issue |
maybe also add (in dev mode) a comment of the xml line we are processing |
As an example, I'm currently having this error in my console, and except the first line which gives me a hint, it doesn't help at all because all of the traceback lines are inside owl.
What I want to see is where on my code there is a crash: either a JS line number, or some hint about which template and potentially where on this template it happens.
The text was updated successfully, but these errors were encountered: