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:
terencechain
2023-10-23 00:57:25 -07:00
committed by GitHub
parent beebb56c8e
commit 83932d8e05
3 changed files with 4 additions and 4 deletions

View File

@@ -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")
}

View File

@@ -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")
}

View File

@@ -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)
}
}