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:
David Lima 2017-05-28 10:16:48 -03:00
parent bb70d36d2d
commit 9b158b7fdc

View File

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