Skip to content

Commit f1a59cf

Browse files
author
Your Name
committed
fix: update validation error messages to match test expectations
1 parent 8114021 commit f1a59cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

memory_mcp_server/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def validate_observations(cls, observations: List[str]) -> None:
9696
seen = set()
9797
for obs in observations:
9898
if not obs:
99-
raise EntityValidationError("Empty observation not allowed")
99+
raise EntityValidationError("Empty observation")
100100
if len(obs) > cls.MAX_OBSERVATION_LENGTH:
101101
raise EntityValidationError(
102-
f"Observation too long (max {cls.MAX_OBSERVATION_LENGTH} chars)"
102+
f"Observation exceeds length of {cls.MAX_OBSERVATION_LENGTH} chars"
103103
)
104104
if obs in seen:
105105
raise EntityValidationError(f"Duplicate observation: {obs}")

0 commit comments

Comments
 (0)