From f0635bf330a20bc7fc6e9afebf9d10c68ab3d313 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 27 Nov 2023 10:32:25 -0500 Subject: [PATCH] Improve error output --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index b25a468..6e52772 100644 --- a/src/error.rs +++ b/src/error.rs @@ -303,7 +303,7 @@ impl fmt::Display for Error { ExpectedMap { actual } => write!(f, "Expected a map, but got {:?}.", actual), ExpectedTable { actual } => write!(f, "Expected a table, but got {:?}.", actual), ExpectedFunction { actual } => { - write!(f, "Expected Value::Function, but got {:?}.", actual) + write!(f, "Expected function, but got {:?}.", actual) } ExpectedCollection { actual } => { write!(