From 13e91157dae407bca3b2f52ed87460ef8b4bb201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 3 Apr 2024 17:10:48 -0700 Subject: [PATCH] less verbose error --- cmd/agedit/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agedit/cli.go b/cmd/agedit/cli.go index e63475a..05930f7 100644 --- a/cmd/agedit/cli.go +++ b/cmd/agedit/cli.go @@ -210,7 +210,7 @@ func action(ctx *cli.Context) error { // read from identity file if exists and no identities have been supplied if !gave_identities { if _, err := os.Stat(cfg.IdentityFile); os.IsNotExist(err) { - return fmt.Errorf("identity file unset and no identities supplied, use -i to specify an idenitity file or set one in the config file, or use -I to specify an age private key") + return fmt.Errorf("identity file unset and no identities supplied") } else { f, err := os.Open(cfg.IdentityFile) if err != nil {