debug: do not print error when error is nil

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga 2023-10-18 12:17:28 +09:00
parent 38137b29dd
commit b06a55cf53
No known key found for this signature in database
GPG Key ID: 6CE0A04690DB3FB3
1 changed files with 3 additions and 0 deletions

View File

@ -418,6 +418,9 @@ func runControllerBuild(ctx context.Context, dockerCli command.Cli, opts *contro
}
func printError(err error, printer *progress.Printer) error {
if err == nil {
return nil
}
if err := printer.Pause(); err != nil {
return err
}