Catch error

This commit is contained in:
soupette 2018-12-06 12:13:27 +01:00
parent 77fe603875
commit de1d66dec4

View File

@ -16,7 +16,11 @@ const exec = (command, args) => {
encoding: 'utf-8',
};
return execFileSync(command, args, options);
try {
return execFileSync(command, args, options);
} catch (err) {
return '';
}
};
const execGitCmd = args =>