That is handled here
<https://github.com/web2py/web2py/blob/master/applications/welcome/static/js/web2py.js#L240>in
web2py.js (the error message itself is set in web2py_ajax.html
<https://github.com/web2py/web2py/blob/master/applications/welcome/views/web2py_ajax.html#L7>,
though web2py.js does not provide a default value in case web2py_ajax.html
is not included in the page).
If you don't want to edit web2py.js, I think you can add this to your
layout (or wherever on the parent page):
<script>
$(function() {
$(document).off('ajaxError');
});
</script>
Of course, that will cancel any other previously defined ajaxError handlers
as well (e.g., if you are using some third party library that adds this
handler). Alternatively, you could add your own handler to hide the flash
div.
Anyway, this message should probably be optional or configurable -- maybe
submit a github issue requesting that.
Anthony
On Sunday, July 19, 2015 at 6:40:53 AM UTC-4, Annet wrote:
>
> After upgrading to web2py version 2.10.4 I sometimes get a flash message:
> "An error occured, please reload the page"
>
> This also happens when editing the appconfig.ini file, even though
> the appconfig.ini file does not contain an error.
>
> Since the message doesn't give me any information as to why the
> error occured, and which file contains the error, I don't see the
> point of this flash message.
>
> What is the use of this message?
>
>
> Kind regards,
>
> Annet
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.