From f5e91ca3f4228ac81b5e37822452848d84177395 Mon Sep 17 00:00:00 2001 From: Cheng Liu Date: Thu, 11 Jul 2024 15:46:33 -0700 Subject: [PATCH] chore: print exit code in error message --- apps/sparo-lib/src/cli/commands/pull.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sparo-lib/src/cli/commands/pull.ts b/apps/sparo-lib/src/cli/commands/pull.ts index 39aa511..2bc44d5 100644 --- a/apps/sparo-lib/src/cli/commands/pull.ts +++ b/apps/sparo-lib/src/cli/commands/pull.ts @@ -74,7 +74,7 @@ export class PullCommand implements ICommand { if (pullProcess.status !== 0) { // 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