mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
This reverts commit 9f065b2b5a.
This commit is contained in:
@@ -59,10 +59,9 @@ export function showErrorMessage(error: any, prefixText?: string): void {
|
||||
if (typeof error === 'string') {
|
||||
text += error as string;
|
||||
} else if (typeof error === 'object' && error !== null) {
|
||||
text += error.message;
|
||||
if (error.code && error.code > 0) {
|
||||
text += ` (${error.code})`;
|
||||
}
|
||||
let message = error.message;
|
||||
let code = error.code || error.errno;
|
||||
text += `${message}${code ? ` (${code})` : ''}`;
|
||||
} else {
|
||||
text += `${error}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user