adding stacktrace to error message

Just had a use case where the real error was obscured because of not having a proper stacktrace in the error message, so this might come in handy for others too