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