Make error messages show only first line on multi-line errors