Add helpful messaging to ClassNotFoundExceptions in EventManager

This commit is contained in:
Austen McDonald
2016-05-30 22:24:38 -07:00
parent 873fd5603e
commit c0a9a623b4
+2 -2
View File
@@ -76,9 +76,9 @@ class EventManager
} catch (\LogicException $e) {
// Currently we do the same thing on not found as on some other
// exception. Maybe we should do something different.
throw new ClassNotFoundException();
throw new ClassNotFoundException("Loading class ${class} failed");
} catch (\ReflectionException $e) {
throw new ClassNotFoundException();
throw new ClassNotFoundException("Could not find class ${class}");
}
// Check if the class implements EventHandler.