mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 23:28:40 +00:00
Add better exception message
This commit is contained in:
parent
1bdeb7967d
commit
62628c40b5
|
|
@ -82,7 +82,7 @@ class ModuleFactory
|
|||
self::registerRequesting($obj);
|
||||
self::registerProvided($obj);
|
||||
} catch (\Exception $e) {
|
||||
throw new \InvalidArgumentException();
|
||||
throw new \InvalidArgumentException('Module "' . $module . '" is not loaded.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user