From 475212593d2c2f8f8385ebbcf6a63261d361d48e Mon Sep 17 00:00:00 2001 From: Mehdi Teymorian Date: Sat, 3 Sep 2022 17:12:10 +0430 Subject: [PATCH] feat: update logging messages --- internal/cmd/key/key.go | 2 +- internal/cmd/set/set.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/key/key.go b/internal/cmd/key/key.go index 5d6c4a3..d66da3b 100644 --- a/internal/cmd/key/key.go +++ b/internal/cmd/key/key.go @@ -36,5 +36,5 @@ func SaveKey(filename string, content []byte) { file.Write(content) - pterm.Success.Printf("key stored in %s/$s\n", dir, filename) + pterm.Success.Printf("key stored in %s/%s\n", dir, filename) } diff --git a/internal/cmd/set/set.go b/internal/cmd/set/set.go index e6229f4..5bf5112 100644 --- a/internal/cmd/set/set.go +++ b/internal/cmd/set/set.go @@ -51,7 +51,7 @@ func set(c *cobra.Command, args []string) { } setEcdsa(cfg, keys[1], args) default: - pterm.Fatal.Println("field %s not found") + pterm.Fatal.Printf("field %s not found\n", args[0]) } pterm.Success.Printf("field %s set to %s\n", args[0], args[1])