mirror of https://github.com/poanetwork/quorum.git
Corrections to logged error messages. (#997)
This commit is contained in:
parent
c8567843ab
commit
1c7901b11b
|
@ -927,7 +927,7 @@ func GenDoc(ctx *cli.Context) {
|
||||||
if data, err := json.MarshalIndent(v, "", " "); err == nil {
|
if data, err := json.MarshalIndent(v, "", " "); err == nil {
|
||||||
output = append(output, fmt.Sprintf("### %s\n\n%s\n\nExample:\n```json\n%s\n```", name, desc, data))
|
output = append(output, fmt.Sprintf("### %s\n\n%s\n\nExample:\n```json\n%s\n```", name, desc, data))
|
||||||
} else {
|
} else {
|
||||||
log.Error("Error generating output", err)
|
log.Error("Error generating output", "err", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -179,7 +179,7 @@ func (w *wizard) importGenesis() {
|
||||||
// Parse the genesis file and inject it successful
|
// Parse the genesis file and inject it successful
|
||||||
var genesis core.Genesis
|
var genesis core.Genesis
|
||||||
if err := json.NewDecoder(reader).Decode(&genesis); err != nil {
|
if err := json.NewDecoder(reader).Decode(&genesis); err != nil {
|
||||||
log.Error("Invalid genesis spec: %v", err)
|
log.Error("Invalid genesis spec", "err", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("Imported genesis block")
|
log.Info("Imported genesis block")
|
||||||
|
|
|
@ -870,7 +870,7 @@ func (pm *ProtocolManager) eventLoop() {
|
||||||
var block types.Block
|
var block types.Block
|
||||||
err := rlp.DecodeBytes(entry.Data, &block)
|
err := rlp.DecodeBytes(entry.Data, &block)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("error decoding block: ", err)
|
log.Error("error decoding block", "err", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if pm.blockchain.HasBlock(block.Hash(), block.NumberU64()) {
|
if pm.blockchain.HasBlock(block.Hash(), block.NumberU64()) {
|
||||||
|
|
Loading…
Reference in New Issue