Collecting evaluation errors/warnigs
From @m.monkenbusch:
In general (also for other errors), to cope with the dilemma between drowning in error messages (an probably ignore them because of their sheer number) and missing an important caveat we may introduce the following scheme:
-
add a set of global warning (resp. error) counters, for each class/type of error. e.g.
ERROR_COUNTER(no_of_errortypes, no_of_loaded_echodata, no_taus) and incase:
ERROR_COUNTER(errtype, noindir, notau) = ERROR_COUNTER(errtype, noindir, notau) +1
-
zero them at start of an evaluation resp. on command clear
-
increment them for each error/warning that is encountered (without message at that point)
-
a some event, either leaving DrSpine or closing the actual report perform an Output of the list which errors/warnings occured and how may of them.
Variants of this is adding the Option:
- if the error/warning is encountered and if the counter-value modulo (N) == 0
- write the warning then increment the counter.
- If we set N to "inf" a message is only issued once at the first occurence.
- Or only a fraction of 1/N-th of the messages is produced.