Added stack trace to error messages.