Trim whitespace
This commit is contained in:
parent
aff66bb371
commit
649c3162d7
|
|
@ -86,8 +86,10 @@ Middleware<AppState> _createLoginRequest(AuthRepository repository) {
|
|||
const errorPattern = 'failed due to: Deserializing';
|
||||
if (message.contains(errorPattern)) {
|
||||
message = 'Error: ' +
|
||||
message.substring(
|
||||
message.lastIndexOf(errorPattern) + errorPattern.length);
|
||||
message
|
||||
.substring(
|
||||
message.lastIndexOf(errorPattern) + errorPattern.length)
|
||||
.trim();
|
||||
} else if (message.toLowerCase().contains('no host specified')) {
|
||||
message = 'An error occurred, please check the URL is correct';
|
||||
} else if (message.contains('404')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue