diff --git a/web/src/App.js b/web/src/App.js
index 27d4d7c..6261f14 100644
--- a/web/src/App.js
+++ b/web/src/App.js
@@ -202,7 +202,11 @@ export class App extends React.Component
on_startup_ok() ;
} )
.catch( err => {
- this.showErrorToast(
Couldn't get the startup messages:
{err.toString()}
) ;
+ let errorMsg = err.toString() ;
+ if ( errorMsg.indexOf( "502" ) !== -1 || errorMsg.indexOf( "504" ) !== -1 )
+ this.showErrorToast( Couldn't connect to the backend Flask server.
) ;
+ else
+ this.showErrorToast( Couldn't get the startup messages:
{errorMsg}
) ;
on_startup_failure() ;
} ) ;
}