Make sure build errors let the build command exit with a error code.
This commit is contained in:
1 parent
64b594c4ac
commit
2efa8b43a3
1 file changed
+5
-1
@@ -35,7 +35,11 @@ func buildAction(ctx *cli.Context) error {
|
||||
|
||||
esBuildCfg.Plugins = append(esBuildCfg.Plugins, contentSwapPlugin(o))
|
||||
|
||||
api.Build(esBuildCfg)
|
||||
result := api.Build(esBuildCfg)
|
||||
if len(result.Errors) > 0 {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
replace(o)
|
||||
|
||||
if ctx.Bool("p") && o.ProductionBuildOptions.CmdPostBuild != "" {
|
||||
|
||||
Reference in new issue
Block a user