give the error message as well
This commit is contained in:
parent
7d9fdf5024
commit
7e47078b14
1 changed files with 1 additions and 3 deletions
|
@ -752,9 +752,7 @@ void server::run() {
|
|||
data_ptr->take_ownership_of_buffer(buf_ptr);
|
||||
|
||||
} catch (simple_wml::error& e) {
|
||||
// Most likely the error happened in scenario data so just give a server
|
||||
// message instead of send_error() which would kick the client out.
|
||||
send_error(sock, "Invalid WML received. You might have to quit.");
|
||||
send_error(sock, ("Invalid WML received: " + e.message).c_str());
|
||||
delete [] buf_ptr;
|
||||
continue;
|
||||
} catch(...) {
|
||||
|
|
Loading…
Add table
Reference in a new issue