Merge remote-tracking branch 'origin/devel' into devel

This commit is contained in:
serge-rider
2020-11-29 00:33:27 +03:00
2 changed files with 3 additions and 1 deletions
@@ -23,6 +23,7 @@ const SNACKBAR_BODY_STYLES = css`
max-height: 200px;
margin-bottom: 8px;
word-break: break-word;
white-space: pre-line;
}
}
}
+2 -1
View File
@@ -27,7 +27,8 @@ export class GQLError extends Error {
this.isTextBody = true;
this.errorText = clientError.response.error;
} else {
this.errorText = clientError.response.errors?.map(e => e.message).join('</br>') || 'unknown error';
this.errorText = clientError.response.errors?.map(e => e.message).join('\n') || 'unknown error';
const firstError = clientError.response.errors?.[0];
this.errorCode = firstError?.extensions?.webErrorCode;
}