1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 08:37:30 +02:00

fix: various fixes (#3023)

* improve twitch error message

* fix worldcosplay notice

* fix: add new video image to telegram

* fix: reuters

* fix: formula1

* twitter
This commit is contained in:
Dag
2022-09-09 20:18:50 +02:00
committed by GitHub
parent 6ac347d5ac
commit 94ae098ef5
7 changed files with 21 additions and 32 deletions

View File

@@ -273,7 +273,7 @@ EOD
if (!$data) {
switch ($this->queriedContext) {
case 'By keyword or hashtag':
returnServerError('No results for this query.');
returnServerError('twitter: No results for this query.');
// fall-through
case 'By username':
returnServerError('Requested username can\'t be found.');
@@ -645,16 +645,7 @@ EOD;
}
// fall-through
default:
$code = $e->getCode();
$data = $e->getMessage();
returnServerError(
<<<EOD
Failed to make api call: $api
HTTP Status: $code
Errormessage: $data
EOD
);
break;
throw $e;
}
}
} while ($retry);