mirror of
https://github.com/bspeice/dtparse
synced 2025-07-03 14:54:57 -04:00
Improve error message to match dateutil
This commit is contained in:
@ -955,7 +955,7 @@ impl Parser {
|
||||
if let Ok(val) = tokens[idx + 4].parse::<i32>() {
|
||||
ymd.append(val, &tokens[idx + 4], None)?;
|
||||
} else {
|
||||
return Err(ParseInternalError::ValueError("".to_owned()));
|
||||
return Err(ParseInternalError::ValueError("Unknown string format".to_owned()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user