mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 20:27:31 +02:00
Merge branch '1.x'
This commit is contained in:
@@ -169,7 +169,7 @@ class StreamHandler extends AbstractProcessingHandler
|
|||||||
set_error_handler([$this, 'customErrorHandler']);
|
set_error_handler([$this, 'customErrorHandler']);
|
||||||
$status = mkdir($dir, 0777, true);
|
$status = mkdir($dir, 0777, true);
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
if (false === $status) {
|
if (false === $status && !is_dir($dir)) {
|
||||||
throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir));
|
throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user