From 14add380f9eb7f8997baae6cabae63fdcd6a4f21 Mon Sep 17 00:00:00 2001 From: Saru2003 Date: Mon, 21 Oct 2024 22:09:16 +0530 Subject: [PATCH] Fix PgError import and Added ValidationError variant --- martin/src/pg/errors.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/martin/src/pg/errors.rs b/martin/src/pg/errors.rs index b8b995ccb..4e83a2ab9 100644 --- a/martin/src/pg/errors.rs +++ b/martin/src/pg/errors.rs @@ -69,4 +69,7 @@ pub enum PgError { #[error(r#"Unable to get tile {2:#} with {:?} params from {1}: {0}"#, query_to_json(.3.as_ref()))] GetTileWithQueryError(#[source] TokioPgError, String, TileCoord, Option), + + #[error("Validation error: {0}")] + ValidationError(String), }