From 72e944af7b617854b08e5029a54003f93bbbf9b5 Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Wed, 15 Oct 2025 05:40:04 +0800 Subject: [PATCH] fix: correct error message for unauthorized label access --- backend/feature/label/src/application/error/label_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/feature/label/src/application/error/label_error.rs b/backend/feature/label/src/application/error/label_error.rs index 85fe3f4..594bdf2 100644 --- a/backend/feature/label/src/application/error/label_error.rs +++ b/backend/feature/label/src/application/error/label_error.rs @@ -12,7 +12,7 @@ impl Display for LabelError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { LabelError::NotFound => write!(f, "Label not found"), - LabelError::Unauthorized => write!(f, "Unauthorized access to post"), + LabelError::Unauthorized => write!(f, "Unauthorized access to label"), LabelError::DuplicatedLabelName => write!(f, "Label name already exists"), LabelError::Unexpected(e) => write!(f, "Unexpected error: {}", e), }