Added better error messages to login and register (#25)
the build failed Details

This commit is contained in:
konrad 2019-03-11 20:37:25 +00:00 committed by Gitea
parent c285120034
commit b904379af7
2 changed files with 4 additions and 6 deletions

View File

@ -112,12 +112,11 @@ class _LoginPageState extends State<LoginPage> {
showDialog(
context: context,
builder: (context) => new AlertDialog(
title:
const Text('Login failed! Please check you credentials.'),
title: Text('Login failed! Please check your server url and credentials. ' + ex.toString()),
actions: <Widget>[
FlatButton(
onPressed: () => Navigator.pop(context),
child: const Text('CLOSE'))
child: const Text('Close'))
],
));
} finally {

View File

@ -139,12 +139,11 @@ class _RegisterPageState extends State<RegisterPage> {
showDialog(
context: context,
builder: (context) => new AlertDialog(
title: const Text(
'Registration failed! Please check your server url and credentials.'),
title: Text('Registration failed! Please check your server url and credentials. ' + ex.toString()),
actions: <Widget>[
FlatButton(
onPressed: () => Navigator.pop(context),
child: const Text('CLOSE'))
child: const Text('Close'))
],
));
} finally {