threefoldfoundation / tfchain

Official implementation of the ThreeFold blockchain
https://explorer.threefoldtoken.com
Apache License 2.0
13 stars 7 forks source link

Clean up if build.DEBUG ..panic everywhere #322

Closed robvanmieghem closed 5 years ago

robvanmieghem commented 5 years ago

At a lot of places some code like

if build.DEBUG && err != nil {
            panic(err)
}

exists, it should be replaced with a call to

import build
build.Severe(

As that one panics on build.DEBUG and always logs the error while now it is often neglected.

robvanmieghem commented 5 years ago

replaced with https://github.com/threefoldtech/rivine/issues/489