mirror of
https://github.com/Intervention/image.git
synced 2025-08-28 16:19:50 +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));
|
||||
|
||||
if ($saved === false) {
|
||||
throw new Exception\ImageNotWritableException;
|
||||
throw new Exception\ImageNotWritableException("Can't write image data to path [{$path}]");
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user