diff options
author | Joris | 2022-11-21 14:47:36 +0100 |
---|---|---|
committer | Joris | 2022-11-21 14:47:36 +0100 |
commit | ae8aafed5bad8edd594556bce079b1545aea9bec (patch) | |
tree | 88cff38eff55c9da1fc44d99dae2e72bd5a8d2eb /src/deck.rs | |
parent | 3fbdc20859a7f795ab9396ead363ab7a9581405d (diff) |
Show errors in TUI instead of nothing
Once the terminal was setup, errors were not shown in case the
application stopped because of an error.
So, show errors explicitely in TUI to be able to debug easily the deck
for example.
Diffstat (limited to 'src/deck.rs')
-rw-r--r-- | src/deck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deck.rs b/src/deck.rs index 82566bd..d23529f 100644 --- a/src/deck.rs +++ b/src/deck.rs @@ -13,7 +13,7 @@ struct ParseError { impl fmt::Display for ParseError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{} (parsing line {})", self.message, self.line) + write!(f, "Line {}: {}", self.line, self.message) } } |