diff --git a/scripts/install/install.ps1 b/scripts/install/install.ps1 index 986f6c6566..e85663a9cf 100644 --- a/scripts/install/install.ps1 +++ b/scripts/install/install.ps1 @@ -217,7 +217,7 @@ function Resolve-Release { try { $releaseMetadata = Invoke-RestMethod -Uri $metadataUri } catch { - throw "Could not fetch GitHub release metadata for Codex $requestedRelease. GitHub API may be unavailable or rate limited. $($_.Exception.Message)" + throw "Could not fetch GitHub release metadata for Codex $requestedRelease. GitHub API may be unavailable or rate limited. $($_.Exception.Message) Consider other installation options https://developers.openai.com/codex/cli" } if ($normalizedVersion -eq "latest") { diff --git a/scripts/install/install.sh b/scripts/install/install.sh index d44b353860..2208385b08 100755 --- a/scripts/install/install.sh +++ b/scripts/install/install.sh @@ -152,7 +152,7 @@ resolve_release() { fi if ! release_json="$(download_text "$metadata_url")"; then - echo "Could not fetch GitHub release metadata for Codex $requested_release. GitHub API may be unavailable or rate limited." >&2 + echo "Could not fetch GitHub release metadata for Codex $requested_release. GitHub API may be unavailable or rate limited. Consider other installation options https://developers.openai.com/codex/cli" >&2 exit 1 fi diff --git a/scripts/install/test_install_sh.py b/scripts/install/test_install_sh.py index 556c6213bb..1bf62453dc 100644 --- a/scripts/install/test_install_sh.py +++ b/scripts/install/test_install_sh.py @@ -29,6 +29,11 @@ class InstallShTest(unittest.TestCase): f"Could not fetch GitHub release metadata for Codex {VERSION}", result.stderr, ) + self.assertIn( + "Consider other installation options " + "https://developers.openai.com/codex/cli", + result.stderr, + ) self.assertNotIn("Could not find Codex package", result.stderr) def test_exact_release_fetches_metadata_once(self) -> None: