mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
added text to ImageNotWritableException
This commit is contained in:
@@ -1723,7 +1723,7 @@ class Image
|
|||||||
$saved = @file_put_contents($path, $this->encode(pathinfo($path, PATHINFO_EXTENSION), $quality));
|
$saved = @file_put_contents($path, $this->encode(pathinfo($path, PATHINFO_EXTENSION), $quality));
|
||||||
|
|
||||||
if ($saved === false) {
|
if ($saved === false) {
|
||||||
throw new Exception\ImageNotWritableException;
|
throw new Exception\ImageNotWritableException("Can't write image data to path [{$path}]");
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Reference in New Issue
Block a user