# HG changeset patch # Parent 220fa4099b9a91526b8a1828f27cf1a9f3c15837 stats: Add more information to uninitialized error ClockedObject was changed to require its regStats() to be called from every child class. If you forget to do this, the error was indecipherable. This patch makes the error more clear. diff -r 220fa4099b9a -r 0e86d5172ab2 src/base/statistics.cc --- a/src/base/statistics.cc Fri Oct 07 23:56:48 2016 -0400 +++ b/src/base/statistics.cc Tue Oct 11 09:23:41 2016 -0500 @@ -221,7 +221,9 @@ #ifdef DEBUG cprintf("this is stat number %d\n", id); #endif - panic("Not all stats have been initialized"); + panic("Not all stats have been initialized.\n" + "You may need to add ::regStats() to a" + " new SimObject's regStats() function."); return false; }