Skip to content

Commit f460b02

Browse files
committed
Merge pull request #2446 from karalabe/console-unlock-fix
cmd/utils: fix accounts merge error on console unlock
2 parents 1e9b504 + a1f1c40 commit f460b02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/utils/jeth.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
7676
if call.Argument(1).IsUndefined() || call.Argument(1).IsNull() {
7777
fmt.Printf("Unlock account %s\n", account)
7878
if input, err := Stdin.PasswordPrompt("Passphrase: "); err != nil {
79-
return otto.FalseValue()
80-
passwd, _ = otto.ToValue(input)
81-
} else {
8279
throwJSExeception(err.Error())
80+
} else {
81+
passwd, _ = otto.ToValue(input)
8382
}
8483
} else {
8584
if !call.Argument(1).IsString() {

0 commit comments

Comments
 (0)