Revert "Support AD in cluster connection dialog (#7367)" (#7444)

This reverts commit 9f065b2b5a.
This commit is contained in:
Karl Burtram
2019-10-01 10:30:38 -07:00
committed by GitHub
parent 3202e46930
commit 19be0d0ff3
15 changed files with 107 additions and 2244 deletions

View File

@@ -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}`;
}