Skip to content

Commit b6a1233

Browse files
committed
Show error message for exceptions in commands
This PR fixes #2061. Signed-off-by: Denis Golovin [email protected]
1 parent 86bd8b3 commit b6a1233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vscommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export async function registerCommands(...modules: string[]): Promise<Disposable
7575
} else {
7676
telemetryProps.error = 'Unexpected error';
7777
}
78-
throw err;
78+
window.showErrorMessage(err.toString());
7979
}
8080
} finally {
8181
telemetryProps.duration = Date.now() - startTime;

0 commit comments

Comments
 (0)