Throw more explicit exception in ImageFile
This commit is contained in:
parent
ce91f1c0e6
commit
0854a84eb9
|
@ -141,7 +141,7 @@ class ImageFile
|
|||
public function getPath()
|
||||
{
|
||||
if (!file_exists($this->filepath)) {
|
||||
throw new ServerException('No file in ImageFile filepath');
|
||||
throw new FileNotFoundException($this->filepath);
|
||||
}
|
||||
|
||||
return $this->filepath;
|
||||
|
|
Loading…
Reference in New Issue
Block a user