Skip to main content

validate_cron_expr

Function validate_cron_expr 

Source
pub(crate) fn validate_cron_expr(expr: &str) -> Result<(), String>
Expand description

Validate a 5-field cron expression, returning a human-readable error on failure. cron__create calls this to reject a malformed schedule at registration time with a clear message.