Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Hiding large number of errors in msSetError #4960
There are certain locations in MapServer were a large number of error can be raised subsequently, which might be annoying if the error is getting displayed to the end user (in a message box for example).
One example for this issue is in msProjectPoint (mapproject.c line 118) which may be raised many times for a polygon or a line string. In the meantime I see that the referred line has been commented out in the master branch, but I don't think if it would be the reasonable solution for this problem, since that error may contain important information for the user.
A trivial solution for this is modifying msSetError to ignore the error if it has already been issued previously.
Hi @szekerest. I see that your patch counts the number of times the error was repeated and adds that number at the end of the message inside brackets (e.g. "message here (5)"). I think it would be more intuitive to the user if you included the text "(message repeated %d times)" instead.