Skip to content

Commit

Permalink
fix: 🐛 Fixes an issue where informational messages are throwing errors (
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jul 20, 2022
1 parent 1dfbc4c commit 331dd26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/git.ts
Expand Up @@ -308,9 +308,10 @@ export async function deploy(action: ActionInterface): Promise<Status> {

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

// If the push failed for any reason other than being rejected,
// If the push failed for any fatal reason other than being rejected,
// there is a problem
if (!rejected && pushResult.stderr) throw new Error(pushResult.stderr)
if (!rejected && pushResult.stderr.startsWith('fatal:'))
throw new Error(pushResult.stderr)
} while (rejected)
}

Expand Down

0 comments on commit 331dd26

Please sign in to comment.