From f8bec5fd205c9ed01a468757eba05acfbef60793 Mon Sep 17 00:00:00 2001 From: Christoph Witzko <github@christophwitzko.com> Date: Sun, 22 May 2022 20:04:12 +0200 Subject: [PATCH] fix: fail if hooks plugin fails (closes #138) --- cmd/semantic-release/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/semantic-release/main.go b/cmd/semantic-release/main.go index 0249208..7608b8a 100644 --- a/cmd/semantic-release/main.go +++ b/cmd/semantic-release/main.go @@ -315,10 +315,7 @@ func cliHandler(cmd *cobra.Command, args []string) { Changelog: changelogRes, RepoInfo: repoInfo, }) - - if herr != nil { - logger.Printf("there was an error executing the hooks plugins: %s", herr.Error()) - } + exitIfError(herr) logger.Println("done.") } -- GitLab