Skip to content

Commit

Permalink
Print out error in checkOutRemoteBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Dec 6, 2023
1 parent 86327ce commit 61d08d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ async function checkOutRemoteBranch(branch) {

return true;
} catch (error) {
core.info(`Branch "${branch}" does not yet exist on remote.`);
core.info(`Branch "${branch}" does not yet exist on remote. error: ${error}`);
await runShellCommand(`git checkout -b ${branch}`);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ async function checkOutRemoteBranch(branch) {

return true;
} catch (error) {
core.info(`Branch "${branch}" does not yet exist on remote.`);
core.info(`Branch "${branch}" does not yet exist on remote. error: ${error}`);
await runShellCommand(`git checkout -b ${branch}`);
return false;
}
Expand Down

0 comments on commit 61d08d0

Please sign in to comment.