Skip to content

Commit

Permalink
Add message when --check does not produce warnings or errors
Browse files Browse the repository at this point in the history
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
  • Loading branch information
daghack committed Jun 24, 2024
1 parent 7b1ec72 commit f64f200
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ func printResult(f *controllerapi.PrintFunc, res map[string]string) error {
}
source.Print(lintBuf)
return errors.New(lintBuf.String())
} else if len(lintResults.Warnings) == 0 {
fmt.Println("Check complete, no warnings found.")
}
default:
if dt, ok := res["result.json"]; ok && f.Format == "json" {
Expand Down

0 comments on commit f64f200

Please sign in to comment.