From 772a58d327872f5ee34f7cb7c54e93720a43d56f Mon Sep 17 00:00:00 2001 From: pleasew8t Date: Wed, 11 Dec 2024 15:44:50 +0200 Subject: [PATCH] update log.Fatalf usage --- node/cmd/guardiand/keyprint.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/cmd/guardiand/keyprint.go b/node/cmd/guardiand/keyprint.go index 6ad9ca185..54167dd64 100644 --- a/node/cmd/guardiand/keyprint.go +++ b/node/cmd/guardiand/keyprint.go @@ -27,23 +27,23 @@ func runKeyprint(cmd *cobra.Command, args []string) { f, err := os.Open(keyFile) if err != nil { - log.Fatalf("failed to open keyfile: %w", err) + log.Fatalf("failed to open keyfile: %v", err) } p, err := armor.Decode(f) if err != nil { - log.Fatalf("failed to read armored file: %w", err) + log.Fatalf("failed to read armored file: %v", err) } b, err := io.ReadAll(p.Body) if err != nil { - log.Fatalf("failed to read file: %w", err) + log.Fatalf("failed to read file: %v", err) } var m nodev1.GuardianKey err = proto.Unmarshal(b, &m) if err != nil { - log.Fatalf("failed to deserialize protobuf: %w", err) + log.Fatalf("failed to deserialize protobuf: %v", err) } fmt.Printf("Guardian key:\n")