8000 [Filesystem] fixed exception message when not a able to write to a di… · daifma/symfony@8b32a4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b32a4b

Browse files
deeky666fabpot
authored andcommitted
[Filesystem] fixed exception message when not a able to write to a directory
1 parent 3dec4dd commit 8b32a4b

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
< 4208 td data-grid-cell-id="diff-8ed4bb257b072f37dd45c63894e898136213634b10e033fef75abc46577649a8-461-461-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">461
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
}
461

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

0 commit comments

Comments
 (0)
0