mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 04:53:33 +01:00
Always reject Promises with Error instances
This commit is contained in:
@@ -210,7 +210,7 @@ class ExtHostSaveParticipant implements INamedSaveParticpant {
|
||||
this._proxy.$participateInSave(editorModel.getResource(), env.reason).then(values => {
|
||||
for (const success of values) {
|
||||
if (!success) {
|
||||
return TPromise.wrapError('listener failed');
|
||||
return TPromise.wrapError(new Error('listener failed'));
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user