|
From: Petr M. <mi...@ph...> - 2007-10-15 20:05:53
|
> I am wondering if we can and should implement something of the sort > automatically. It's easy to have int_error() set an error flag. I've tested the patch. I see in the docs: The read-only variable GPVAL_ERRORNO is set to a non-zero value if any gnuplot command terminates early due to an error. The most recent error message is stored in the string variable GPVAL_ERRORMSG. Both GPVAL_ERRORNO and GPVAL_ERRORMSG can be cleared using the command `reset errors`. I don't like the name "ERRORNO" very much -- the naming is contrary to what one would expect -- according to the docs it should be called GPVAL_ERRORYES. I would vote for just a simple name GPVAL_ERROR. (Names like GPVAL_ERRORWAS don't look so nice.) With this change, I propose the patch can go to cvs. --- PM |