From 19d305dc47235f1d1514a02f621f4afa628f10b7 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Mon, 8 Jul 2024 19:22:06 +0530 Subject: [PATCH] improved error messages for remove ingestor API --- server/src/handlers/http/cluster/mod.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/src/handlers/http/cluster/mod.rs b/server/src/handlers/http/cluster/mod.rs index 32ccd5821..74ba8b34c 100644 --- a/server/src/handlers/http/cluster/mod.rs +++ b/server/src/handlers/http/cluster/mod.rs @@ -472,7 +472,9 @@ pub async fn remove_ingestor(req: HttpRequest) -> Result Result { - format!("Node {} Removed Successfully", domain_name) + format!("Ingestor {} removed successfully", domain_name) } Err(err) => { if matches!(err, ObjectStorageError::IoError(_)) { - format!("Node {} Not Found", domain_name) + format!("Ingestor {} is not found", domain_name) } else { - format!("Error Removing Node {}\n Reason: {}", domain_name, err) + format!("Error removing ingestor {}\n Reason: {}", domain_name, err) } } };