add stacktrace to internal error message