Skip to content

Commit 6d964f4

Browse files
chore(logs): error message was misleading (#1119)
1 parent 4878d85 commit 6d964f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

agent-control/src/agent_control/agent_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct AgentID(String);
1717

1818
#[derive(Error, Debug)]
1919
pub enum AgentIDError {
20-
#[error("AgentID must contain 32 characters at most, contain alphanumeric characters or dashes only, start with alphabetic, and end with alphanumeric")]
20+
#[error("AgentID must contain 32 characters at most, contain lowercase alphanumeric characters or dashes only, start with alphabetic, and end with alphanumeric")]
2121
InvalidFormat,
2222
#[error("AgentID '{0}' is reserved")]
2323
Reserved(String),

agent-control/src/agent_control/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ agents: {}
408408
assert!(actual
409409
.unwrap_err()
410410
.to_string()
411-
.contains("AgentID must contain 32 characters at most, contain alphanumeric characters or dashes only, start with alphabetic, and end with alphanumeric"))
411+
.contains("AgentID must contain 32 characters at most, contain lowercase alphanumeric characters or dashes only, start with alphabetic, and end with alphanumeric"))
412412
}
413413

414414
#[test]

0 commit comments

Comments
 (0)