Correctly display unit errors with correct error position in edit/run