handle multi-line errors in an unambiguous way