Skip to content

Commit 331dd26

Browse files
authored
fix: 🐛 Fixes an issue where informational messages are throwing errors (#1168)
1 parent 1dfbc4c commit 331dd26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/git.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,10 @@ export async function deploy(action: ActionInterface): Promise<Status> {
308308

309309
if (rejected) info('Updates were rejected')
310310

311-
// If the push failed for any reason other than being rejected,
311+
// If the push failed for any fatal reason other than being rejected,
312312
// there is a problem
313-
if (!rejected && pushResult.stderr) throw new Error(pushResult.stderr)
313+
if (!rejected && pushResult.stderr.startsWith('fatal:'))
314+
throw new Error(pushResult.stderr)
314315
} while (rejected)
315316
}
316317

0 commit comments

Comments
 (0)