修复git内置插件,push取消输入账号密码时,识别标红终端输出语句为乱码的问题
This commit is contained in:
parent
6423a74405
commit
5df518aac9
|
@ -3094,6 +3094,13 @@ export class CommandCenter {
|
|||
return;
|
||||
}
|
||||
|
||||
//修复git内置插件,push取消输入账号密码时,识别标红终端输出语句为乱码的问题
|
||||
|
||||
if (message.indexOf("Unauthorized") >= 0) {
|
||||
console.log('git error output:' + message);
|
||||
message = "Git:Remote:Failed to authenticate to git remote.";
|
||||
}
|
||||
|
||||
const allChoices = Array.from(choices.keys());
|
||||
const result = type === 'error'
|
||||
? await window.showErrorMessage(message, options, ...allChoices)
|
||||
|
|
Loading…
Reference in New Issue