Throw more explicit exception in ImageFile

This commit is contained in:
Mikael Nordfeldth 2015-02-25 01:14:27 +01:00
parent ce91f1c0e6
commit 0854a84eb9

View File

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