JMutexAutoLock lock(m_step_dtime_mutex);
m_step_dtime += dtime;
}
- // Assert if fatal error occurred in thread
+ // Throw if fatal error occurred in thread
std::string async_err = m_async_fatal_error.get();
- if(async_err != "") {
- errorstream << "UNRECOVERABLE error occurred. Stopping server. "
- << "Please fix the following error:" << std::endl
- << async_err << std::endl;
- assert(false);
+ if(async_err != ""){
+ throw ServerError(async_err);
}
}