diff --git a/lib/redux/auth/auth_middleware.dart b/lib/redux/auth/auth_middleware.dart index 7903d38a2..9d1875be4 100644 --- a/lib/redux/auth/auth_middleware.dart +++ b/lib/redux/auth/auth_middleware.dart @@ -86,11 +86,12 @@ Middleware _createLoginRequest(AuthRepository repository) { } }).catchError((Object error) { print(error); - if (error.toString().contains('No host specified in URI')) { - store.dispatch(UserLoginFailure('Please check the URL is correct')); - } else { - store.dispatch(UserLoginFailure(error.toString())); + var message = error.toString(); + if (message.contains('No host specified in URI')) { + message = 'Please check the URL is correct'; } + message += ', you may need to add /public to the URL'; + store.dispatch(UserLoginFailure(message)); }); next(action);