Skip to content

Commit

Permalink
send r10k error message on failure, instead of exit code, when deploy…
Browse files Browse the repository at this point in the history
…ing a module fails
  • Loading branch information
tmu-sprd committed May 30, 2024
1 parent 314e3d3 commit 28a8fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (m ModuleController) DeployModule(c *gin.Context) {
c.JSON(http.StatusInternalServerError, res)
c.Abort()
if conf.ChatOps.Enabled {
conn.PostMessage(http.StatusInternalServerError, data.ModuleName, err)
conn.PostMessage(http.StatusInternalServerError, data.ModuleName, res)
}
return
}
Expand Down

0 comments on commit 28a8fa9

Please sign in to comment.