We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a59e9e commit 210d030Copy full SHA for 210d030
crates/mysql/src/connection.rs
@@ -91,10 +91,12 @@ where
91
let e = e.into();
92
if e.chain().any(|cause| matches!(
93
cause.downcast_ref(),
94
- Some(
95
- mysql_async::Error::Driver(DriverError::PoolDisconnected)
96
- | mysql_async::Error::Io(_)
97
- )
+ Some(mysql_async::Error::Driver(DriverError::PoolDisconnected))
+ )) {
+ panic!("{}", format!("MySQL pool disconnected: {e:#}"));
+ } else if e.chain().any(|cause| matches!(
98
+ cause.downcast_ref(),
99
+ Some(mysql_async::Error::Io(_))
100
)) {
101
Err(e.context(ErrorMetadata::operational_internal_server_error()))
102
} else {
0 commit comments