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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user