Added support for multi-line error messages (not robust)