8000 merged branch deeky666/fix-filesystem-exception-message (PR #8587) · daifma/symfony@728d194 · GitHub
[go: up one dir, main page]

Skip to content

Commit 728d194

Browse files
committed
merged branch deeky666/fix-filesystem-exception-message (PR symfony#8587)
This PR was squashed before being merged into the master branch (closes symfony#8587). Discussion ---------- [Filesystem] fixed exception message when not a able to write to a directory | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a This simply fixes an exception message in the Filesystem Component when a directory is not writable while dumping a file via `dumpFile()`. Commits ------- 8b32a4b [Filesystem] fixed exception message when not a able to write to a directory
2 parents af2bb34 + 8b32a4b commit 728d194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public function dumpFile($filename, $content, $mode = 0666)
456456
if (!is_dir($dir)) {
457457
$this->mkdir($dir);
458458
} elseif (!is_writable($dir)) {
459-
throw new IOException(sprintf('Unable to write in the %s directory\n', $dir));
459+
throw new IOException(sprintf('Unable to write to the "%s" directory.', $dir));
460460
}
461461

462462
$tmpFile = tempnam($dir, basename($filename));

0 commit comments

Comments
 (0)
0