(e: crate::Error)
| 187 | } |
| 188 | |
| 189 | fn internal(e: crate::Error) -> PgWireError { |
| 190 | // Surface error string but never echo deserializer context — the |
| 191 | // restore orchestrator already scrubs envelope errors. We pass |
| 192 | // through everything else (RPC failures, dispatch errors). |
| 193 | sqlstate(ss::INTERNAL_ERROR, &e.to_string()) |
| 194 | } |