From f22eb87b7a7aeccfa556dcdb56148e89cee023db Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 24 Dec 2019 18:10:12 +0000 Subject: Add debug output to unhandled type error message --- dhall/src/error/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall/src/error/mod.rs') diff --git a/dhall/src/error/mod.rs b/dhall/src/error/mod.rs index 40cccac..8976478 100644 --- a/dhall/src/error/mod.rs +++ b/dhall/src/error/mod.rs @@ -125,7 +125,7 @@ impl std::fmt::Display for TypeError { y )) } - _ => "Type error: Unhandled error".to_string(), + _ => format!("Type error: Unhandled error: {:?}", self.message), }; write!(f, "{}", msg) } -- cgit v1.2.3