We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceac41e commit 699d42eCopy full SHA for 699d42e
src/server.cpp
@@ -479,13 +479,10 @@ void Server::step(float dtime)
479
JMutexAutoLock lock(m_step_dtime_mutex);
480
m_step_dtime += dtime;
481
}
482
- // Assert if fatal error occurred in thread
+ // Throw if fatal error occurred in thread
483
std::string async_err = m_async_fatal_error.get();
484
- if(async_err != "") {
485
- errorstream << "UNRECOVERABLE error occurred. Stopping server. "
486
- << "Please fix the following error:" << std::endl
487
- << async_err << std::endl;
488
- assert(false);
+ if(async_err != ""){
+ throw ServerError(async_err);
489
490
491
Okay for the client side problem. But you didn't fix the server side problem. The server crashes because we throw in the nether.
1 commit comments
nerzhul commentedon Mar 17, 2015
Okay for the client side problem. But you didn't fix the server side problem. The server crashes because we throw in the nether.