diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-05 16:50:02 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-05 16:50:02 +0100 |
commit | 0fac2e3f3aaaeaddf431f7877ebddb6372a00a42 (patch) | |
tree | a940bf4d733550b3829a213abd311de627683917 /lib/autoloader.php | |
parent | 895e6337325f4a107aeb834268bbcc0205ecb308 (diff) | |
download | nextcloud-server-0fac2e3f3aaaeaddf431f7877ebddb6372a00a42.tar.gz nextcloud-server-0fac2e3f3aaaeaddf431f7877ebddb6372a00a42.zip |
Unique exception for invalid autoload paths, better handling
Background jobs are tolerant of stale entries left by disabled apps,
which will cause an autoload exception.
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r-- | lib/autoloader.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php index dd09c3b9cb5..41a040b3f54 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -27,6 +27,8 @@ namespace OC; +use \OCP\AutoloadNotAllowedException; + class Autoloader { private $useGlobalClassPath = true; @@ -129,7 +131,7 @@ class Autoloader { return true; } } - throw new \Exception('Path not allowed: '. $fullPath); + throw new AutoloadNotAllowedException($fullPath); } /** |