Updated error message re: input file date field.

This commit is contained in:
scoobybejesus 2019-10-23 21:16:22 -04:00
parent ac9aa106fd
commit b5a5c8ec62
1 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,8 @@ pub(crate) fn import_transactions(
let tx_date = NaiveDate::parse_from_str(this_tx_date, &format_yy) let tx_date = NaiveDate::parse_from_str(this_tx_date, &format_yy)
.unwrap_or(NaiveDate::parse_from_str(this_tx_date, &format_yyyy) .unwrap_or(NaiveDate::parse_from_str(this_tx_date, &format_yyyy)
.expect("\nFailed to parse date in input file. Check date separator character. Also %m/%d/%y (or %Y) format is required.\n") .expect("
Failed to parse date in input file. Check date separator character (which is a hyphen unless modified via Cli option -d).\n")
); );
let transaction = Transaction { let transaction = Transaction {