Fixing 'File not present' exception throw
Current code is throwing a wapmorgan\Mp3Info\Exception, which not exists Bug fixed by throwing a \Exception instead
This commit is contained in:
parent
bb70d36d2d
commit
9b158b7fdc
@ -163,7 +163,7 @@ class Mp3Info {
|
||||
if (is_null(self::$_sampleRateTable)) self::$_sampleRateTable = require dirname(__FILE__).'/../data/sampleRateTable.php';
|
||||
|
||||
if (!file_exists($filename))
|
||||
throw new Exception("File ".$filename." is not present!");
|
||||
throw new \Exception("File ".$filename." is not present!");
|
||||
$mode = $parseTags ? self::META | self::TAGS : self::META;
|
||||
$this->audioSize = $this->parseAudio($this->_fileName = $filename, $this->_fileSize = filesize($filename), $mode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user