Skip to content

Commit

Permalink
Do not append stacktrace to the message in throw_runtime_exception()
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Jan 13, 2022
1 parent f9b2ed0 commit 6903eac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/impl/Kokkos_Error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ void traceback_callstack(std::ostream &msg) {
}

void throw_runtime_exception(const std::string &msg) {
std::ostringstream o;
o << msg;
traceback_callstack(o);
throw std::runtime_error(o.str());
throw std::runtime_error(msg);
}

void host_abort(const char *const message) {
Expand Down

0 comments on commit 6903eac

Please sign in to comment.