Commit 32230134 authored by Taeguk Kwon's avatar Taeguk Kwon Committed by GitHub

op-ufm: use `fmt.Errorf()` for `panic()` (#8754)

parent 1740df6a
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment