This commit is contained in:
isidor
2020-03-26 11:51:12 +01:00
parent 4d93f2f4b0
commit 04b2d52822
2 changed files with 2 additions and 1 deletions
@@ -670,7 +670,7 @@ export class RawDebugSession implements IDisposable {
});
}
if (error && error.format && error.showUser) {
this.notificationService.error(error.format);
this.notificationService.error(userMessage);
}
return new Error(userMessage);
@@ -17,6 +17,7 @@ suite('Debug - Utils', () => {
assert.strictEqual(formatPII('Foo {0} Bar {1}{2}', false, { '0': 'yes', '1': 'undefined' }), 'Foo yes Bar undefined{2}');
assert.strictEqual(formatPII('Foo {_key0} Bar {key1}{key2}', true, { '_key0': 'yes', 'key1': '5', 'key2': 'false' }), 'Foo yes Bar {key1}{key2}');
assert.strictEqual(formatPII('Foo {_key0} Bar {key1}{key2}', false, { '_key0': 'yes', 'key1': '5', 'key2': 'false' }), 'Foo yes Bar 5false');
assert.strictEqual(formatPII('Unable to display threads:"{e}"', false, { 'e': 'detached from process' }), 'Unable to display threads:"detached from process"');
});
test('getExactExpressionStartAndEnd', () => {