From aa3fef1ef04789524dc7c0513401ebf5c2f17757 Mon Sep 17 00:00:00 2001 From: Taeguk Kwon Date: Tue, 2 Jan 2024 07:10:30 +0900 Subject: [PATCH] op-ufm: use `fmt.Errorf()` for `panic()` (#8754) --- op-ufm/op-ufm/tools/kmstool/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-ufm/op-ufm/tools/kmstool/main.go b/op-ufm/op-ufm/tools/kmstool/main.go index 2fea5f3..425e761 100644 --- a/op-ufm/op-ufm/tools/kmstool/main.go +++ b/op-ufm/op-ufm/tools/kmstool/main.go @@ -26,13 +26,13 @@ func main() { ctx := context.Background() client, err := kms.NewKeyManagementClient(ctx) if err != nil { - panic(fmt.Sprintf("failed to create kms client: %w", err)) + panic(fmt.Errorf("failed to create kms client: %w", err)) } defer client.Close() addr, err := resolveAddr(ctx, client, keyName) if err != nil { - panic(fmt.Sprintf("failed to retrieve the key: %w", err)) + panic(fmt.Errorf("failed to retrieve the key: %w", err)) } fmt.Printf("ethereum addr: %s", addr) println()