We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a772c commit 4720708Copy full SHA for 4720708
src/vscommand.ts
@@ -70,7 +70,11 @@ export async function registerCommands(...modules: string[]): Promise<Disposable
70
// TODO: Wrap view title commands in try/catch and re-throw as VsCommandError
71
// TODO: telemetry cannot send not known exception stacktrace or message
72
// because it can contain user's sensitive information
73
- telemetryProps.error = 'Unexpected error';
+ if (err instanceof TypeError) {
74
+ telemetryProps.error = err.message;
75
+ } else {
76
+ telemetryProps.error = 'Unexpected error';
77
+ }
78
throw err;
79
}
80
} finally {
0 commit comments