Added proper error message

This commit is contained in:
obscuren 2014-02-16 20:33:23 +01:00
parent 2ea05292c0
commit e5b97fe03e
1 changed files with 3 additions and 1 deletions

View File

@ -293,7 +293,9 @@ func (p *Peer) HandleInbound() {
err = p.ethereum.BlockManager.ProcessBlock(block)
if err != nil {
log.Println("bckmsg", err)
if ethutil.Config.Debug {
log.Printf("[PEER] Block (%x) err %v", block.Hash()[:4], err)
}
break
} else {
lastBlock = block