mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Enforce log.WithError(err) static analysis and fix all violations (#11163)
* Use log.WithError static analysis from #11143 and fix all violations * Fix another log violation after pulling from develop * Update beacon-chain/sync/pending_blocks_queue.go Co-authored-by: Potuz <potuz@prysmaticlabs.com> * @potuz feedback * Copy paste fail * fix tests Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
This commit is contained in:
@@ -50,7 +50,7 @@ var Commands = &cli.Command{
|
||||
return err
|
||||
}
|
||||
if _, err := accounts.CreateAndSaveWalletCli(cliCtx); err != nil {
|
||||
log.Fatalf("Could not create a wallet: %v", err)
|
||||
log.WithError(err).Fatal("Could not create a wallet")
|
||||
}
|
||||
return nil
|
||||
},
|
||||
@@ -83,7 +83,7 @@ var Commands = &cli.Command{
|
||||
},
|
||||
Action: func(cliCtx *cli.Context) error {
|
||||
if err := remoteWalletEdit(cliCtx); err != nil {
|
||||
log.Fatalf("Could not edit wallet configuration: %v", err)
|
||||
log.WithError(err).Fatal("Could not edit wallet configuration")
|
||||
}
|
||||
return nil
|
||||
},
|
||||
@@ -115,7 +115,7 @@ var Commands = &cli.Command{
|
||||
return err
|
||||
}
|
||||
if err := accounts.RecoverWalletCli(cliCtx); err != nil {
|
||||
log.Fatalf("Could not recover wallet: %v", err)
|
||||
log.WithError(err).Fatal("Could not recover wallet")
|
||||
}
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user