From 7446472833c86fba612fffa436e93514f773f305 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 10 Apr 2019 23:43:14 +0200 Subject: Display error messages --- dhall/src/error.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dhall') diff --git a/dhall/src/error.rs b/dhall/src/error.rs index eba7ff5..9e64b7e 100644 --- a/dhall/src/error.rs +++ b/dhall/src/error.rs @@ -7,18 +7,23 @@ quick_error! { pub enum Error { IO(err: std::io::Error) { from() + display("{}", err) } Parse(err: dhall_core::ParseError) { from() + display("{}", err) } Decode(err: crate::binary::DecodeError) { from() + display("{:?}", err) } Resolve(err: crate::imports::ImportError) { from() + display("{}", err) } Typecheck(err: crate::typecheck::TypeError) { from() + display("{:?}", err) } } } -- cgit v1.2.3