Make error parsing more Go like