From b5a5c8ec622ae4f714a40227e0e6c8d7b5b48e66 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Wed, 23 Oct 2019 21:16:22 -0400 Subject: [PATCH] Updated error message re: input file date field. --- src/csv_import_accts_txns.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csv_import_accts_txns.rs b/src/csv_import_accts_txns.rs index 2116ead..d80ee82 100644 --- a/src/csv_import_accts_txns.rs +++ b/src/csv_import_accts_txns.rs @@ -214,7 +214,8 @@ pub(crate) fn import_transactions( let tx_date = NaiveDate::parse_from_str(this_tx_date, &format_yy) .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 {