mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
fix: do not panic on alphas (#8406)
alphas are used sometimes as stable release
This commit is contained in:
committed by
GitHub
Unverified
parent
d281bcfcd4
commit
aa83d7da24
@@ -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