Commit 54c599c7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when there is a problem with fetching data in firefox show proper message

parent f4585f53
Pipeline #53116 passed with stage
in 11 minutes
......@@ -431,7 +431,11 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
* @returns {Object}
*/
GuiConnector.prototype.getErrorMessageForError = function (error) {
if (error instanceof NetworkError && (error.message === 'Failed to fetch' || error.message === 'Load failed')) {
if (error instanceof NetworkError &&
(error.message === 'Failed to fetch' //chrome
|| error.message === 'Load failed'
|| error.message === 'NetworkError when attempting to fetch resource' //firefox
)) {
return {
showReport: false,
message: "There was a problem with fetching data from minerva server. " +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment