summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-11-30 14:10:35 +0100
committerLaurenz <laurmaedje@gmail.com>2019-11-30 14:10:35 +0100
commitb13ed627fff73a599b34d760cd99aa2f08d58ea8 (patch)
treef580390e1666af9f4f54c72c95ca438d4c999900 /src/lib.rs
parentb4efae08834a3a950387f01aebaa9e832acd9423 (diff)
Better error reporting 🚨
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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),