[Filesystem] fixed exception message when not a able to write to a directory

This commit is contained in:
Steve Müller 2013-07-26 14:14:41 +02:00 committed by Fabien Potencier
parent 3dec4dd2e6
commit 8b32a4ba9b

View File

@ -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));