diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php
index 9225712..ecd20ee 100644
--- a/core/lib/Drupal/Core/Template/TwigEnvironment.php
+++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php
@@ -78,7 +78,10 @@ protected function isFresh($cache_filename, $name) {
   public function updateCompiledTemplate($cache_filename, $name) {
     $source = $this->loader->getSource($name);
     $compiled_source = $this->compileSource($source, $name);
-    $this->storage()->save($cache_filename, $compiled_source);
+    if (!$this->storage()->save($cache_filename, $compiled_source)) {
+      throw new \Exception('hey');
+      return;
+    }
     // Save the last modification time
     $cid = 'twig:' . $cache_filename;
     $this->cache_object->set($cid, REQUEST_TIME);
