diff --git a/core/lib/Drupal/Core/Config/FileStorage.php b/core/lib/Drupal/Core/Config/FileStorage.php index 01b070697135317fb277740529abfad08631f717..fe202a3e0ed6dd60826bd4753abcd1a3242f10b4 100644 --- a/core/lib/Drupal/Core/Config/FileStorage.php +++ b/core/lib/Drupal/Core/Config/FileStorage.php @@ -154,10 +154,7 @@ public function write($name, array $data) { $status = @file_put_contents($target, $encoded_data); } if ($status === FALSE) { - throw new StorageException('Failed to write configuration file: ' . $this->getFilePath($name)); - } - else { - $this->getFileSystem()->chmod($target); + throw new StorageException('Failed to write configuration file: ' . $target); } $this->fileCache->set($target, $data);