persist error message, not only stack trace