mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Catch error
This commit is contained in:
parent
77fe603875
commit
de1d66dec4
@ -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 =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user