mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -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:
@@ -13,5 +13,5 @@ var checkpointCmd = &cli.Command{
|
||||
}
|
||||
|
||||
func cliDeprecatedLatest(_ *cli.Context) error {
|
||||
return fmt.Errorf("This command has moved. Please use 'prysmctl weak-subjectivity checkpoint' instead!")
|
||||
return fmt.Errorf("this command has moved. Please use 'prysmctl weak-subjectivity checkpoint' instead")
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@ var saveCmd = &cli.Command{
|
||||
}
|
||||
|
||||
func cliActionDeprecatedSave(_ *cli.Context) error {
|
||||
return fmt.Errorf("This command has moved. Please use 'prysmctl checkpoint-sync download' instead!")
|
||||
return fmt.Errorf("this command has moved. Please use 'prysmctl checkpoint-sync download' instead")
|
||||
}
|
||||
|
||||
@@ -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