From b13ed627fff73a599b34d760cd99aa2f08d58ea8 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 30 Nov 2019 14:10:35 +0100 Subject: =?UTF-8?q?Better=20error=20reporting=20=F0=9F=9A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index a5551c77..b1408f4a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -133,8 +133,8 @@ pub enum TypesetError { error_type! { err: TypesetError, show: f => match err { - TypesetError::Parse(e) => write!(f, "parse error: {}", e), - TypesetError::Layout(e) => write!(f, "layout error: {}", e), + TypesetError::Parse(e) => write!(f, "{}", e), + TypesetError::Layout(e) => write!(f, "{}", e), }, source: match err { TypesetError::Parse(e) => Some(e), -- cgit v1.2.3