1
0

Improve error output

This commit is contained in:
Jeff 2023-11-27 10:32:25 -05:00
parent 0646d010c5
commit f0635bf330

View File

@ -303,7 +303,7 @@ impl fmt::Display for Error {
ExpectedMap { actual } => write!(f, "Expected a map, but got {:?}.", actual), ExpectedMap { actual } => write!(f, "Expected a map, but got {:?}.", actual),
ExpectedTable { actual } => write!(f, "Expected a table, but got {:?}.", actual), ExpectedTable { actual } => write!(f, "Expected a table, but got {:?}.", actual),
ExpectedFunction { actual } => { ExpectedFunction { actual } => {
write!(f, "Expected Value::Function, but got {:?}.", actual) write!(f, "Expected function, but got {:?}.", actual)
} }
ExpectedCollection { actual } => { ExpectedCollection { actual } => {
write!( write!(