the error flag is normally returned from the TVirtualFitter method.
For example when executing a command the error flag is the return argument of the TVirtualFitter::ExecuteCommand method.
In the case of mnstat the error flag is returned from the TVirtualFitter::GetStats.