We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f343b commit 88371b1Copy full SHA for 88371b1
libraries/namespacemap.php
@@ -145,7 +145,9 @@ protected function writeNamespaceFile($elements)
145
$error_reporting = error_reporting(0);
146
147
try {
148
- File::write($this->file, implode("\n", $content));
+ if (!File::write($this->file, implode("\n", $content))) {
149
+ throw new Exception('Could not save ' . $this->file, 500);
150
+ }
151
} catch (Exception $e) {
152
Log::add('Could not save ' . $this->file, Log::WARNING);
153
0 commit comments