journal: pretty errors for included files
Fixes simonmichael/hledger#660
This commit is contained in:
parent
fa2e680b2e
commit
9cdd02e0b0
@ -203,7 +203,7 @@ includedirectivep = do
|
|||||||
either
|
either
|
||||||
(throwError
|
(throwError
|
||||||
. ((show parentpos ++ " in included file " ++ show filename ++ ":\n") ++)
|
. ((show parentpos ++ " in included file " ++ show filename ++ ":\n") ++)
|
||||||
. show)
|
. parseErrorPretty)
|
||||||
(return . journalAddFile (filepath, txt))
|
(return . journalAddFile (filepath, txt))
|
||||||
ej1
|
ej1
|
||||||
case ej of
|
case ej of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user