fix: do not panic on alphas (#8406)
alphas are used sometimes as stable release
This commit is contained in:
parent
d281bcfcd4
commit
aa83d7da24
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue