瀏覽代碼

Stops error message with stash apply conflict

main
Eric Amodio 7 年之前
父節點
當前提交
71edb1b99a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/commands/stashApply.ts

+ 4
- 1
src/commands/stashApply.ts 查看文件

@ -70,7 +70,10 @@ export class StashApplyCommand extends Command {
catch (ex) {
Logger.error(ex, 'StashApplyCommand');
if (ex.message.includes('Your local changes to the following files would be overwritten by merge')) {
return window.showErrorMessage(`Unable to apply stash. Your working tree changes would be overwritten.`);
return window.showWarningMessage(`Unable to apply stash. Your working tree changes would be overwritten.`);
}
else if (ex.message.includes('Auto-merging') && ex.message.includes('CONFLICT')) {
return window.showInformationMessage(`Stash applied with conflicts`);
}
else {
return window.showErrorMessage(`Unable to apply stash. See output channel for more details`);

Loading…
取消
儲存