Follow-up Comment #2, patch #1252 (project freeciv):

> How should the functions in registry.c be changed to send a
> message to the clients? An extra argument 'char *err_msg' could
> be added to each of these functions. It would be NULL if there
> is no error, else it would contain the error message which will
> be send to the client.

That would mean this patch only replaces need to check min/max values (at
calling side) with need to check for returned error message.
I would use callback function that handles error messages. In case of ruleset
loading ruleset_error() could be passed as such a callback function.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to