mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Log exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a06ba88502
commit
d96633916c
1 changed files with 1 additions and 0 deletions
|
|
@ -641,6 +641,7 @@ class OC_App {
|
|||
$path_info = $request->getPathInfo();
|
||||
} catch (Exception $e) {
|
||||
// Can happen from unit tests because the script name is `./vendor/bin/phpunit` or something a like then.
|
||||
\OC::$server->get(LoggerInterface::class)->error('Failed to detect current app from script path', ['exception' => $e]);
|
||||
return '';
|
||||
}
|
||||
if ($path_info) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue