fix console.warn

related to #84283
This commit is contained in:
Joao Moreno
2019-11-13 10:41:46 +01:00
parent 48af7ba677
commit 44a7079ed1

View File

@@ -180,8 +180,7 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
}
if (fn && typeof fn !== 'function') {
console.warn('Invalid SCM input box validation function');
return;
throw new Error(`[${this._extension.identifier.value}]: Invalid SCM input box validation function`);
}
this._validateInput = fn;