* we can not inject it. Thus the static call.
*/
\OC::$server->get(LoggerInterface::class)->critical(
- 'Could not load lazy dashboard widget: ' . $e->getMessage(),
- ['excepiton' => $e]
+ 'Could not load lazy dashboard widget: ' . $service['class'],
+ ['exception' => $e]
);
+ continue;
}
/**
* Try to register the loaded reporter. Theoretically it could be of a wrong
* we can not inject it. Thus the static call.
*/
\OC::$server->get(LoggerInterface::class)->critical(
- 'Could not register lazy dashboard widget: ' . $e->getMessage(),
+ 'Could not register lazy dashboard widget: ' . $service['class'],
['exception' => $e]
);
+ continue;
}
try {
}
} catch (Throwable $e) {
\OC::$server->get(LoggerInterface::class)->critical(
- 'Error during dashboard widget loading: ' . $e->getMessage(),
+ 'Error during dashboard widget loading: ' . $service['class'],
['exception' => $e]
);
+ continue;
}
}
$this->lazyWidgets = [];