From 7545d1f31e5157a5e4ca2844d95dd1666af99228 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 12 Apr 2019 18:48:27 +0200 Subject: [PATCH] Fix `ExpectedNumber` error message Relates to #40 --- src/error/display.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/display.rs b/src/error/display.rs index 3bfd640..a8c3710 100644 --- a/src/error/display.rs +++ b/src/error/display.rs @@ -22,7 +22,7 @@ impl fmt::Display for EvalexprError { ExpectedInt { actual } => write!(f, "Expected a Value::Int, but got {:?}.", actual), ExpectedFloat { actual } => write!(f, "Expected a Value::Float, but got {:?}.", actual), ExpectedNumber { actual } => { - write!(f, "Expected a Value::Number, but got {:?}.", actual) + write!(f, "Expected a Value::Float or Value::Int, but got {:?}.", actual) }, ExpectedBoolean { actual } => { write!(f, "Expected a Value::Boolean, but got {:?}.", actual)