less verbose error

This commit is contained in:
Lilian Jónsdóttir 2024-04-03 17:10:48 -07:00
parent b18ea5ff7b
commit 13e91157da

View file

@ -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 {