From 323724476aa6199cbe39af6c79c205cdba78ccbc Mon Sep 17 00:00:00 2001 From: Park Juhyung Date: Mon, 30 Mar 2020 14:16:26 +0900 Subject: [PATCH] Change the error message that Foundry prints when account is not unlocked The previous error message was printing the wrong information that the user should specify the password-path. Although a user used the --password-path option, if the engine_signer's key is not included in the keys_path directory, or its password was not included in the password file, the same error will be thrown. --- foundry/run_node.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/foundry/run_node.rs b/foundry/run_node.rs index 2d62863234..210a8947d7 100644 --- a/foundry/run_node.rs +++ b/foundry/run_node.rs @@ -130,8 +130,7 @@ fn new_miner( Some(ref engine_signer) => match miner.set_author((*engine_signer).into_address()) { Err(AccountProviderError::NotUnlocked) => { return Err( - "The account is not unlocked. Specify the password path using --password-path option." - .to_string(), + format!("The account {} is not unlocked. The key file should exist in the keys_path directory, and the account's password should exist in the password_path file.", engine_signer) ) } Err(e) => return Err(format!("{}", e)),