#include "stage.h"
+#include <msp/debug/demangle.h>
+#include <msp/strings/format.h>
#include "accessguard.h"
#include "camera.h"
#include "root.h"
for(const auto &s: systems)
{
System::Activator act(*s);
- s->tick(dt);
+ try
+ {
+ s->tick(dt);
+ }
+ catch(const invalid_access &exc)
+ {
+ throw invalid_access(format("%s by %s", exc.what(), Debug::demangle(typeid(*s).name())));
+ }
}
}