mirror of
https://github.com/openai/codex.git
synced 2026-02-01 22:47:52 +00:00
fix: do not panic on alphas (#8406)
alphas are used sometimes as stable release
This commit is contained in:
@@ -17,7 +17,7 @@ pub(crate) fn backoff(attempt: u64) -> Duration {
|
||||
}
|
||||
|
||||
pub(crate) fn error_or_panic(message: impl std::string::ToString) {
|
||||
if cfg!(debug_assertions) || env!("CARGO_PKG_VERSION").contains("alpha") {
|
||||
if cfg!(debug_assertions) {
|
||||
panic!("{}", message.to_string());
|
||||
} else {
|
||||
error!("{}", message.to_string());
|
||||
|
||||
Reference in New Issue
Block a user