diff --git a/lib/pages/login_page.dart b/lib/pages/login_page.dart index eb65be0..457c64d 100644 --- a/lib/pages/login_page.dart +++ b/lib/pages/login_page.dart @@ -112,12 +112,11 @@ class _LoginPageState extends State { 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: [ FlatButton( onPressed: () => Navigator.pop(context), - child: const Text('CLOSE')) + child: const Text('Close')) ], )); } finally { diff --git a/lib/pages/register_page.dart b/lib/pages/register_page.dart index 3587eaf..f78b5f7 100644 --- a/lib/pages/register_page.dart +++ b/lib/pages/register_page.dart @@ -139,12 +139,11 @@ class _RegisterPageState extends State { 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: [ FlatButton( onPressed: () => Navigator.pop(context), - child: const Text('CLOSE')) + child: const Text('Close')) ], )); } finally {