Skip to content

Commit 50bcbb5

Browse files
committed
T.P.Error: define displayException for PandocError.
This is a behavior change, not an API change, since there was already a definition that defaulted to using Show. The change here is that we use renderError for a more human-readable version.
1 parent 1b1aa3d commit 50bcbb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Text/Pandoc/Error.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ data PandocError = PandocIOError Text IOError
6868
deriving (Show, Typeable, Generic)
6969

7070
instance Exception PandocError
71+
where
72+
displayException = T.unpack . renderError
7173

7274
renderError :: PandocError -> Text
7375
renderError e =

0 commit comments

Comments
 (0)