mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
Merge remote-tracking branch 'origin/devel' into devel
This commit is contained in:
@@ -23,6 +23,7 @@ const SNACKBAR_BODY_STYLES = css`
|
||||
max-height: 200px;
|
||||
margin-bottom: 8px;
|
||||
word-break: break-word;
|
||||
white-space: pre-line;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user