macro_rules! handle_schema_err {
($result:expr) => { ... };
}Expand description
Handles schema errors, transforming a Result into an Option.
- If the input is
Ok(v), returnsSome(v) - If the input is
Err(err)and the error status code isTableNotFoundorTableColumnNotFound, returnsNone(ignoring these specific errors) - If the input is
Err(err)with any other error code, directly returns aPrometheusJsonResponse::error.