Skip to content

Commit

Permalink
build: return an error if build is not performed (#12)
Browse files Browse the repository at this point in the history
Fixes #11

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
  • Loading branch information
sandrobonazzola committed Oct 12, 2022
1 parent f7d861b commit c3608df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ func BuildCmdMain(build_img bool, push_img bool, cec ce_client.ContainerEngineCl

}
} else {
logger.Infof("Failed requirements check, not building: %s %s\n", conf.Image_Name, conf.Image_Tag)
logger.Errorf("Failed requirements check, not building: %s %s\n", conf.Image_Name, conf.Image_Tag)
return fmt.Errorf("failed requirements check, not building: %s %s", conf.Image_Name, conf.Image_Tag)
}
return nil
}
Expand Down

0 comments on commit c3608df

Please sign in to comment.