runtime: fix misleading signal driver panic message (#8419)

Co-authored-by: philphauler <[email protected]>
This commit is contained in:
Phil Phauler
2026-09-06 20:02:36 +08:00
committed by GitHub
co-authored by philphauler
parent 060cc4e46a
commit 787697f76f
+1 -1
View File
@@ -100,7 +100,7 @@ impl Handle {
pub(crate) fn signal(&self) -> &crate::runtime::signal::Handle { pub(crate) fn signal(&self) -> &crate::runtime::signal::Handle {
self.signal self.signal
.as_ref() .as_ref()
.expect("there is no signal driver running, must be called from the context of Tokio runtime") .expect("A Tokio 1.x context was found, but IO is disabled. Call `enable_io` on the runtime builder to enable IO.")
} }
} }