Little improvements (#1244)

This commit is contained in:
Cønstantine Kovalensky 2023-12-21 09:10:34 +04:00 committed by GitHub
commit fbc4749ca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 8 deletions

View file

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