diff --git a/includes/ForeignWikiRequest.php b/includes/ForeignWikiRequest.php index 475f86ff2..0e89d5b2e 100644 --- a/includes/ForeignWikiRequest.php +++ b/includes/ForeignWikiRequest.php @@ -245,9 +245,11 @@ class EchoForeignWikiRequest { if ( !isset( $results[$wiki] ) ) { LoggerFactory::getInstance( 'Echo' )->warning( - 'Failed to fetch API response from {wiki}. Error code {code}', + 'Failed to fetch API response from {wiki}. Error: {error}', [ 'wiki' => $wiki, + 'error' => $response['response']['error'] ?? 'unknown', + 'statusCode' => $statusCode, 'response' => $response['response'], 'request' => $reqs[$wiki], ]