From a44379c9e04a18dc635f7b027b963b515e173e11 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Fri, 14 Nov 2025 22:06:57 -0800 Subject: [PATCH] tighten --- codex-rs/core/src/util.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/util.rs b/codex-rs/core/src/util.rs index 0bce5b4439..9f6dae5fd0 100644 --- a/codex-rs/core/src/util.rs +++ b/codex-rs/core/src/util.rs @@ -16,7 +16,12 @@ pub(crate) fn backoff(attempt: u64) -> Duration { pub(crate) fn error_or_panic(message: String) { if cfg!(debug_assertions) || env!("CARGO_PKG_VERSION").contains("alpha") { - panic!("{message}"); + error!("{message}"); + panic!( + "This is an intentional panic to catch errors in debug and alpha builds. + If you don't know why this panic is happening, please report the issue to the Codex team in the appropriate channels including `/feedback`. + {message}" + ); } else { error!("{message}"); }