mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-08 21:48:05 -05:00
Provide better error messages when offline preparation file cannot be read.
This commit is contained in:
@@ -66,7 +66,7 @@ func ParseAccount(ctx context.Context,
|
||||
if unlock {
|
||||
_, err = UnlockAccount(ctx, account, nil)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to unlock account")
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
default:
|
||||
@@ -82,7 +82,7 @@ func ParseAccount(ctx context.Context,
|
||||
// Supplementary will be the unlock passphrase(s).
|
||||
_, err = UnlockAccount(ctx, account, supplementary)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to unlock account")
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
case strings.Contains(accountStr, " "):
|
||||
|
||||
Reference in New Issue
Block a user