diff --git a/Classes/Cache/CacheFactory.php b/Classes/Cache/CacheFactory.php index 3058bf6..a86d373 100644 --- a/Classes/Cache/CacheFactory.php +++ b/Classes/Cache/CacheFactory.php @@ -75,11 +75,16 @@ public function set(string $entryIdentifier, string $data, array $tags = [], int CacheAccessCollector::registerCache($cacheIdentifier, $backendObjectName); - return $this->instantiateBackend( - $proxyBackendFQDN, - $backendOptions, - $environmentConfiguration, - $persistent - ); + + try { + return $this->instantiateBackend( + $proxyBackendFQDN, + $backendOptions, + $environmentConfiguration, + $persistent + ); + } catch (\Throwable $throwable) { + throw new \RuntimeException(sprintf('Cannot instantiate debug proxied backend "%s" for cache "%s"', $backendObjectName, $cacheIdentifier), 1773330049, $throwable); + } } }