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
Truncate error messages #311
Comments
Here is the more complete list: http://tgceec.tumblr.com/post/74534916370/results-of-the-grand-c-error-explosion |
"Works" on the beta site. Generates a jolly large error message:
I think the error message needs truncating a tiny bit earlier. |
Couldn't reproduce (via https://godbolt.org/g/ujv6gi ) though I think truncating the error output is still sensible. Renaming bug and making a feature. |
I'd be happy to work on this. Is there a preferred length to truncate the error messages to? |
I think that the best solution would be to make it configurable via the |
I am able to truncate the error message coming from the compiler response in static/compiler.js, but I am unsure how I would access the property to allow the response length to be configured. |
Take a look at the config files in ‘etc/‘ I would drop a new property in the default one and load it as a config option. Have a look at ‘app.js’. It loads the config options there. then use this to truncate the error string. |
Thanks. The part that I am stuck on is loading it as a config option. Sorry, my comment was unclear. I added |
Thanks @jaredwy and @RabsRincon. I've got it so that the number of lines can be truncated by the amount set in the |
This was truncated on the serverside a long time ago, so this is actually fixed |
E.g. putting this code:
template<class T>class L{L<T*>operator->()};L<int>i=i->
in the view kills the browser...The text was updated successfully, but these errors were encountered: