[Filesystem] fixed exception message when not a able to write to a directory
This commit is contained in:
parent
3dec4dd2e6
commit
8b32a4ba9b
@ -456,7 +456,7 @@ class Filesystem
|
||||
if (!is_dir($dir)) {
|
||||
$this->mkdir($dir);
|
||||
} elseif (!is_writable($dir)) {
|
||||
throw new IOException(sprintf('Unable to write in the %s directory\n', $dir));
|
||||
throw new IOException(sprintf('Unable to write to the "%s" directory.', $dir));
|
||||
}
|
||||
|
||||
$tmpFile = tempnam($dir, basename($filename));
|
||||
|
Reference in New Issue
Block a user