Add error position to output