From e813ecae86371adf50b39a06d89709b1268abae3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 4 Mar 2021 20:17:18 +0100 Subject: Fix expected error message Signed-off-by: Matthias Beyer --- tests/errors.rs | 2 +- tests/file_toml.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/errors.rs b/tests/errors.rs index e59608e..47dd050 100644 --- a/tests/errors.rs +++ b/tests/errors.rs @@ -27,7 +27,7 @@ fn test_error_parse() { assert_eq!( res.unwrap_err().to_string(), format!( - "failed to parse datetime for key `error` at line 2 column 9 in {}", + "invalid TOML value, did you mean to use a quoted string? at line 2 column 9 in {}", path.display() ) ); diff --git a/tests/file_toml.rs b/tests/file_toml.rs index b964586..8fbd8a5 100644 --- a/tests/file_toml.rs +++ b/tests/file_toml.rs @@ -86,7 +86,7 @@ fn test_error_parse() { assert_eq!( res.unwrap_err().to_string(), format!( - "failed to parse datetime for key `error` at line 2 column 9 in {}", + "invalid TOML value, did you mean to use a quoted string? at line 2 column 9 in {}", path_with_extension.display() ) ); -- cgit v1.2.3