Update error message in gameroom daemon
Update error messages in the gameroom daemon after calling 'load_key'
@@ -103,9 +103,11 @@ fn run() -> Result<(), GameroomDaemonError> {
let context = Secp256k1Context::new();
let private_key = load_key(config.key(), &[PathBuf::from("")])
.map_err(|err| GameroomDaemonError::SigningError(err.to_string()))?
- .ok_or_else(|| GameroomDaemonError::SigningError( {
- format!("No signing key found in {:?}. Either specify the --key argument or generate the default key via splinter keygen", config.key())
- }))?;
+ .ok_or_else(|| {
+ GameroomDaemonError::SigningError({
+ format!("No signing key found in {}", config.key())
+ })
+ })?;
let private_key_hex = private_key.as_hex();
let public_key_hex = context.get_public_key(&private_key)?.as_hex();
