Skip to content

Commit f8bec5f

Browse files
fix: fail if hooks plugin fails (closes #138)
1 parent e0488f1 commit f8bec5f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/semantic-release/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,7 @@ func cliHandler(cmd *cobra.Command, args []string) {
315315
Changelog: changelogRes,
316316
RepoInfo: repoInfo,
317317
})
318-
319-
if herr != nil {
320-
logger.Printf("there was an error executing the hooks plugins: %s", herr.Error())
321-
}
318+
exitIfError(herr)
322319

323320
logger.Println("done.")
324321
}

0 commit comments

Comments
 (0)