We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d50f4d commit 5148284Copy full SHA for 5148284
src/WP_CLI/CommandWithUpgrade.php
@@ -893,6 +893,13 @@ protected function get_the_latest_github_version( $repo_slug ) {
893
);
894
}
895
896
+ if ( 404 === wp_remote_retrieve_response_code( $response ) ) {
897
+ return new \WP_Error(
898
+ $decoded_body->status,
899
+ $decoded_body->message
900
+ );
901
+ }
902
+
903
if ( null === $decoded_body ) {
904
return new \WP_Error( 500, 'Empty response received from GitHub.com API' );
905
0 commit comments