mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user