Add error formatting option

@joshtombs I think we can drop these changes now :0