mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
[proxy] Correctly classify ConnectErrors (#12793)
As is, e.g. quota errors on wake compute are logged as "compute" errors.
This commit is contained in:
committed by
GitHub
parent
edd60730c8
commit
f3ee6e818d
@@ -458,7 +458,7 @@ pub(crate) enum LocalProxyConnError {
|
|||||||
impl ReportableError for HttpConnError {
|
impl ReportableError for HttpConnError {
|
||||||
fn get_error_kind(&self) -> ErrorKind {
|
fn get_error_kind(&self) -> ErrorKind {
|
||||||
match self {
|
match self {
|
||||||
HttpConnError::ConnectError(_) => ErrorKind::Compute,
|
HttpConnError::ConnectError(e) => e.get_error_kind(),
|
||||||
HttpConnError::ConnectionClosedAbruptly(_) => ErrorKind::Compute,
|
HttpConnError::ConnectionClosedAbruptly(_) => ErrorKind::Compute,
|
||||||
HttpConnError::PostgresConnectionError(p) => match p.as_db_error() {
|
HttpConnError::PostgresConnectionError(p) => match p.as_db_error() {
|
||||||
// user provided a wrong database name
|
// user provided a wrong database name
|
||||||
|
|||||||
Reference in New Issue
Block a user