mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-28 22:41:13 -05:00
refactor: type and name of catch exception should match
This commit is contained in:
@@ -84,7 +84,7 @@ class TorrentController extends BaseController
|
||||
|
||||
try {
|
||||
$meta = Bencode::get_meta($decodedTorrent);
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Exception $exception) {
|
||||
return $this->sendError('Validation Error.', 'You Must Provide A Valid Torrent File For Upload!');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user