mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-09 14:07:56 -05:00
Do not mask account errors.
This commit is contained in:
@@ -52,7 +52,7 @@ func ParseAccount(ctx context.Context,
|
||||
account, err := parseAccountFromSpecifier(ctx, accountStr, supplementary, unlock)
|
||||
if err != nil {
|
||||
// It is possible that this is actually a path to a keystore, so try that instead.
|
||||
if _, err = os.Stat(accountStr); err == nil {
|
||||
if _, statErr := os.Stat(accountStr); statErr == nil {
|
||||
account, err = parseAccountFromKeystorePath(ctx, accountStr, supplementary, unlock)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user