mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Refactor Error String Formatting According to Go Best Practices (#13092)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -256,9 +256,9 @@ func importPrivateKeyAsAccount(ctx context.Context, wallet *wallet.Wallet, impor
|
||||
)
|
||||
return nil
|
||||
case ethpbservice.ImportedKeystoreStatus_ERROR:
|
||||
return fmt.Errorf("Could not import keystore for %s: %s", keystore.Pubkey, status.Message)
|
||||
return fmt.Errorf("could not import keystore for %s: %s", keystore.Pubkey, status.Message)
|
||||
case ethpbservice.ImportedKeystoreStatus_DUPLICATE:
|
||||
return fmt.Errorf("Duplicate key %s skipped", keystore.Pubkey)
|
||||
return fmt.Errorf("duplicate key %s skipped", keystore.Pubkey)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user