Skip to content

Commit

Permalink
fix(java): logging message should not crash when there's no latestTag (
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed May 5, 2020
1 parent b11c70e commit 860c613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/releasers/java-yoshi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ export class JavaYoshi extends ReleasePR {
});

console.info(
`attempting to open PR latestTagSha = ${latestTag!.sha} prSha = ${prSHA}`
`attempting to open PR latestTagSha = ${
latestTag ? latestTag.sha : 'none'
} prSha = ${prSHA}`
);
await this.openPR(
prSHA!,
Expand Down

0 comments on commit 860c613

Please sign in to comment.