Skip to content

Commit e4d78e6

Browse files
committed
Change the output of the account create command
1 parent e2809fc commit e4d78e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codechain/account_command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ pub fn run_account_command(matches: ArgMatches) -> Result<(), String> {
4141
("create", _) => {
4242
if let Some(password) = read_password_and_confirm() {
4343
let (address, _) = ap.new_account_and_public(password.as_ref()).expect("Cannot create account");
44-
println!("Address {} is created", address);
44+
println!("{:?}", address);
4545
} else {
46-
println!("The password does not match");
46+
return Err("The password does not match".to_string())
4747
}
4848
Ok(())
4949
}

0 commit comments

Comments
 (0)