mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
chore: sparo exit with the same code when git pull fails
This commit is contained in:
parent
f5e91ca3f4
commit
d27a941ae5
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ export class PullCommand implements ICommand<IPullCommandOptions> {
|
|||
|
||||
if (pullProcess.status !== 0) {
|
||||
// Pull failed
|
||||
throw new Error(`"git pull" operation failed (exit code ${pullProcess.status})`);
|
||||
process.exitCode = pullProcess.status || 1;
|
||||
throw new Error(`"git pull" operation failed`);
|
||||
}
|
||||
|
||||
// check whether profile exist in local branch
|
||||
|
|
Loading…
Reference in a new issue