Added better error messages to login and register
the build was successful Details

This commit is contained in:
konrad 2019-03-11 20:55:22 +01:00
parent d30ea0f91c
commit d3066bc907
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
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 {