git.iko.soy/typeable/pandoc
on master help sign in
Better message for PandocShouldNeverHappenError.
65f73deJohn MacFarlane
src/Text/Pandoc/Error.hs+3−1
@@ -66,7 +66,9 @@ handleError (Left e) =
66 PandocIOError _ err' -> ioError err'
66 PandocIOError _ err' -> ioError err'
67 PandocHttpError u err' -> err 61 $
67 PandocHttpError u err' -> err 61 $
68 "Could not fetch " ++ u ++ "\n" ++ show err'
68 "Could not fetch " ++ u ++ "\n" ++ show err'
69− PandocShouldNeverHappenError s -> err 62 s
69+ PandocShouldNeverHappenError s -> err 62 $
70+ "Something we thought was impossible happened!\n" ++
71+ "Please report this to pandoc's developers: " ++ s
70 PandocSomeError s -> err 63 s
72 PandocSomeError s -> err 63 s
71 PandocParseError s -> err 64 s
73 PandocParseError s -> err 64 s
72 PandocParsecError input err' ->
74 PandocParsecError input err' ->