1
0
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:
Mike Meehan
2018-07-18 23:03:53 -04:00
parent 4acd072974
commit e1c7c8424a
2 changed files with 4 additions and 2 deletions

View File

@ -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()));
}
}