summaryrefslogtreecommitdiff
path: root/ext/cron/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/cron/lib.rs')
-rw-r--r--ext/cron/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/cron/lib.rs b/ext/cron/lib.rs
index a0f1c44e1..ede01ba45 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(())
}