diff --git a/ext/cron/lib.rs b/ext/cron/lib.rs index a0f1c44e1e..ede01ba45f 100644 --- a/ext/cron/lib.rs +++ b/ext/cron/lib.rs @@ -121,7 +121,7 @@ fn validate_cron_name(name: &str) -> Result<(), AnyError> { if !name.chars().all(|c| { c.is_ascii_whitespace() || c.is_ascii_alphanumeric() || c == '_' || c == '-' }) { - return Err(type_error("Invalid cron name")); + return Err(type_error("Invalid cron name. Only alphanumeric characters, whitespace, hyphens, and underscores are allowed")); } Ok(()) }