mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +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::registerRequesting($obj);
|
||||||
self::registerProvided($obj);
|
self::registerProvided($obj);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new \InvalidArgumentException();
|
throw new \InvalidArgumentException('Module "' . $module . '" is not loaded.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user