From 2d3cebd0dc6a66ada9c248390431b6dae470eebc Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Sun, 16 Jul 2023 16:02:05 +0000 Subject: [PATCH] feat: better help when no signer option is found --- src/signer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/signer.rs b/src/signer.rs index 6ea36d5..ccf0621 100644 --- a/src/signer.rs +++ b/src/signer.rs @@ -94,7 +94,11 @@ impl SignerArgs { (Some(StringValue::FromEnvVar(keystore)), keystore_password, None) => { Self::resolve_keystore(keystore, keystore_password) } - _ => Err(anyhow::anyhow!("no valid signer option provided")), + _ => Err(anyhow::anyhow!( + "no valid signer option provided. \ + Consider using a keystore by providing a --keystore option.\ + \n\nFor more information, see: https://book.starkli.rs/signers" + )), } }