diff --git a/lib/Alchemy/Phrasea/Core/Profiler/TraceableCache.php b/lib/Alchemy/Phrasea/Core/Profiler/TraceableCache.php index ff5d9add06..3f336b8abf 100644 --- a/lib/Alchemy/Phrasea/Core/Profiler/TraceableCache.php +++ b/lib/Alchemy/Phrasea/Core/Profiler/TraceableCache.php @@ -264,6 +264,10 @@ class TraceableCache implements Cache, PhraseaCache */ public function get($key) { + if ( ! $this->contains($key)) { + throw new Exception('Unable to retrieve the value'); + } + return $this->fetch($key); }