Kaynağa Gözat

Stops re-throw of know errors

main
Eric Amodio 8 yıl önce
ebeveyn
işleme
e1190d50a4
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. +1
    -0
      src/git/git.ts

+ 1
- 0
src/git/git.ts Dosyayı Görüntüle

@ -27,6 +27,7 @@ async function gitCommand(cwd: string, ...args: any[]) {
const msg = ex && ex.toString();
if (msg && (msg.includes('Not a git repository') || msg.includes('is outside repository') || msg.includes('no such path'))) {
Logger.warn('git', ...args, ` cwd='${cwd}'`, msg && `\n ${msg.replace(/\r?\n|\r/g, ' ')}`);
return '';
}
else {
Logger.error(ex, 'git', ...args, ` cwd='${cwd}'`, msg && `\n ${msg.replace(/\r?\n|\r/g, ' ')}`);

Yükleniyor…
İptal
Kaydet