diff --git a/packages/smooth_app/lib/pages/user_management/sign_up_page.dart b/packages/smooth_app/lib/pages/user_management/sign_up_page.dart index 6541c4ba540..c76cc38d2e7 100644 --- a/packages/smooth_app/lib/pages/user_management/sign_up_page.dart +++ b/packages/smooth_app/lib/pages/user_management/sign_up_page.dart @@ -373,7 +373,23 @@ class _SignUpPageState extends State with TraceableClientMixin { _userFocusNode.requestFocus(); errorMessage = appLocalisations.sign_up_page_user_name_already_used; } else { - errorMessage = status.error; + // Let's try to find the error in + final Iterable allMatches = + RegExp('(
  • )(.*?)(
  • )') + .allMatches(status.error!); + if (allMatches.isNotEmpty) { + final StringBuffer buffer = StringBuffer(); + for (final RegExpMatch match in allMatches) { + if (buffer.isNotEmpty) { + buffer.write('\n\n'); + } + + buffer.write(match.group(2)); + } + errorMessage = buffer.toString(); + } else { + errorMessage = status.error; + } } }