add error message as well as stacktrace. particularly useful for undefined variable reference errors.