chore: print exit code in error message

This commit is contained in:
Cheng Liu 2024-07-11 15:46:33 -07:00
parent 03e6bcb94a
commit f5e91ca3f4
No known key found for this signature in database
GPG key ID: EEC8452F7DB85CD6

View file

@ -74,7 +74,7 @@ export class PullCommand implements ICommand<IPullCommandOptions> {
if (pullProcess.status !== 0) { if (pullProcess.status !== 0) {
// Pull failed // Pull failed
throw new Error('"git pull" operation failed'); throw new Error(`"git pull" operation failed (exit code ${pullProcess.status})`);
} }
// check whether profile exist in local branch // check whether profile exist in local branch