Provide better error messages when offline preparation file cannot be read.

This commit is contained in:
Jim McDonald
2023-01-31 15:25:40 +00:00
parent 7e8db1cd2e
commit a2afd37a97
5 changed files with 24 additions and 23 deletions

View File

@@ -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, " "):