From 061f5cfbd478ea124fa0ed68db69da99827de6a7 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 11 Apr 2022 09:15:49 -0400 Subject: [PATCH] improve error message --- src/math_app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math_app.rs b/src/math_app.rs index 327410f..882caf2 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -111,7 +111,7 @@ lazy_static::lazy_static! { } else if path_string == "text.json" { text_data = Some(SerdeValueHelper::new(str::from_utf8(&data).expect("unable to read text.json")).parse_values()); } else { - panic!("Other file {} not expected!", path_string); + panic!("File {} not expected!", path_string); } }