Handle multi-line error messages