journal: pretty errors for included files

Fixes simonmichael/hledger#660
This commit is contained in:
Mykola Orliuk 2017-12-03 14:33:26 +01:00 committed by Simon Michael
parent fa2e680b2e
commit 9cdd02e0b0

View File

@ -203,7 +203,7 @@ includedirectivep = do
either
(throwError
. ((show parentpos ++ " in included file " ++ show filename ++ ":\n") ++)
. show)
. parseErrorPretty)
(return . journalAddFile (filepath, txt))
ej1
case ej of