Skip to content

Commit

Permalink
feat: better help when no signer option is found
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Jul 16, 2023
1 parent ddfb5aa commit 2d3cebd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)),
}
}

Expand Down

0 comments on commit 2d3cebd

Please sign in to comment.