give the error message as well

This commit is contained in:
Gunter Labes 2009-02-01 11:46:46 +00:00
parent 7d9fdf5024
commit 7e47078b14

View file

@ -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(...) {