diff --git a/src/extension.ts b/src/extension.ts index caaa7870..4407f4cf 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -79,11 +79,12 @@ function initAsyncCommand(context: vscode.ExtensionContext, commandId: string, c } catch (error) { if (error instanceof errors.UserCancelledError) { result = 'Canceled'; - // Swallow the error so that it's not displayed to the user } else { result = 'Failed'; errorData = util.errorToString(<{}>error); - throw error; + if (error instanceof Error) { + vscode.window.showErrorMessage(error.message); + } } } finally { const end: number = Date.now();