Skip to content

Commit 04b2d52

Browse files
committed
1 parent 4d93f2f commit 04b2d52

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/debug/browser/rawDebugSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ export class RawDebugSession implements IDisposable {
670670
});
671671
}
672672
if (error && error.format && error.showUser) {
673-
this.notificationService.error(error.format);
673+
this.notificationService.error(userMessage);
674674
}
675675

676676
return new Error(userMessage);

src/vs/workbench/contrib/debug/test/common/debugUtils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ suite('Debug - Utils', () => {
1717
assert.strictEqual(formatPII('Foo {0} Bar {1}{2}', false, { '0': 'yes', '1': 'undefined' }), 'Foo yes Bar undefined{2}');
1818
assert.strictEqual(formatPII('Foo {_key0} Bar {key1}{key2}', true, { '_key0': 'yes', 'key1': '5', 'key2': 'false' }), 'Foo yes Bar {key1}{key2}');
1919
assert.strictEqual(formatPII('Foo {_key0} Bar {key1}{key2}', false, { '_key0': 'yes', 'key1': '5', 'key2': 'false' }), 'Foo yes Bar 5false');
20+
assert.strictEqual(formatPII('Unable to display threads:"{e}"', false, { 'e': 'detached from process' }), 'Unable to display threads:"detached from process"');
2021
});
2122

2223
test('getExactExpressionStartAndEnd', () => {

0 commit comments

Comments
 (0)