diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-30 14:10:35 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-30 14:10:35 +0100 |
| commit | b13ed627fff73a599b34d760cd99aa2f08d58ea8 (patch) | |
| tree | f580390e1666af9f4f54c72c95ca438d4c999900 /src/lib.rs | |
| parent | b4efae08834a3a950387f01aebaa9e832acd9423 (diff) | |
Better error reporting 🚨
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), |
