Modified error ouput format and pretty printing