mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Little improvements (#1244)
This commit is contained in:
parent
c4df759d09
commit
fbc4749ca9
4 changed files with 5 additions and 8 deletions
|
@ -31,7 +31,7 @@ if (!file_exists($filename) || !$file_contents = file_get_contents($filename)) {
|
|||
try {
|
||||
$tor = \Arokettu\Bencode\Bencode::decode($file_contents, dictType: \Arokettu\Bencode\Bencode\Collection::ARRAY);
|
||||
} catch (\Exception $e) {
|
||||
$this->response['html'] = $lang['TORFILE_INVALID'];
|
||||
$this->response['html'] = htmlCHR("{$lang['TORFILE_INVALID']}: {$e->getMessage()}");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue