From 132d30944ee2709422a3ff5ea9c90ad7f98e242e Mon Sep 17 00:00:00 2001 From: zc Date: Mon, 14 Feb 2022 10:25:46 +0800 Subject: [PATCH] fix potential panic due to nil pointer (#85) --- cmd/image/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/image/build.go b/cmd/image/build.go index 86ba99b..0b4a81a 100644 --- a/cmd/image/build.go +++ b/cmd/image/build.go @@ -38,7 +38,7 @@ func (o *buildImageOptions) run(ctx context.Context) error { break } if err != nil { - fmt.Printf("Build failed: %s\tErrorDetail: %s\n", msg.Error, msg.ErrorDetail) + fmt.Printf("Build failed: %+v\n", err) return err }