Skip to content

Commit 229dbd4

Browse files
committed
exception error fixes #55
1 parent 6de5548 commit 229dbd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PHPVideoToolkit/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct($video_file_path, Config $config=null, ImageFormat $
3232
// validate this media file is a image file
3333
if($ensure_image_file === true && $this->_validateMedia('image') === false)
3434
{
35-
throw new \LogicException('You cannot use an instance of '.get_class($this).' for "'.$image_file_path.'" as the file is not a image file. It is reported to be a '.$type);
35+
throw new \LogicException('You cannot use an instance of '.get_class($this).' for "'.$video_file_path.'" as the file is not a image file. It is reported to be a '.$this->readType());
3636
}
3737
}
3838

src/PHPVideoToolkit/Video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct($video_file_path, Config $config=null, VideoFormat $
3737
// validate this media file is a video file
3838
if($ensure_video_file === true && $this->_validateMedia('video') === false)
3939
{
40-
throw new \LogicException('You cannot use an instance of '.get_class($this).' for "'.$video_file_path.'" as the file is not a video file. It is reported to be a '.$type);
40+
throw new \LogicException('You cannot use an instance of '.get_class($this).' for "'.$video_file_path.'" as the file is not a video file. It is reported to be a '.$this->readType());
4141
}
4242

4343
$this->_extracting_frames = false;

0 commit comments

Comments
 (0)