Skip to content

Commit 110e2f6

Browse files
authored
Merge pull request microsoft#188476 from microsoft/joh/occupational-vulture
Improve message of performance error
2 parents 76415ef + 34645e4 commit 110e2f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/profiling/common/profilingTelemetrySpec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ class PerformanceError extends Error {
6767
readonly selfTime: number;
6868

6969
constructor(data: SampleData) {
70-
super('[PerfSampleError]');
70+
super(`PerfSampleError: by ${data.source} in ${data.sample.location}`);
7171
this.name = 'PerfSampleError';
7272
this.selfTime = data.sample.selfTime;
7373

7474
const trace = [data.sample.absLocation, ...data.sample.caller.map(c => c.absLocation)];
75-
this.stack = `${this.message} by ${data.source} in ${data.sample.location}\n\t at ${trace.join('\n\t at ')}`;
75+
this.stack = `\n\t at ${trace.join('\n\t at ')}`;
7676
}
7777
}

0 commit comments

Comments
 (0)