Avoid <message repeated n times> when using TError

Hi all, I’m trying to have root macro print some error messages like this:

::Error("location","message")

Every time that an error message is printed multiple times I get something like:

<message repeated n time>

How can I avoid this and have the macro print all the messages? Thanks in advance


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi @Federico_Battisti ,

are you sure it’s ROOT doing this?

I tried running this foo.C macro:

#include <TError.h>

void foo() {
   Error("location","message");
   Error("location","message");
   Error("location","message");
   Error("location","message");
   Error("location","message");
   Error("location","message");
}

and I get:

Error in <location>: message
Error in <location>: message
Error in <location>: message
Error in <location>: message
Error in <location>: message
Error in <location>: message

No “error repeated n times” :eyes:

Ugh, you are right, it must be something else, thanks for your help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.