git.iko.soy/typeable/pandoc
on master help sign in
Give source position for include file loop.
commit62b30d841823f6b9452e5a3d26b2ef5b52ca531c authorJohn MacFarlane <jgm@berkeley.edu> dateSat 3 Dec 2016, 22:39 (10 years ago) parentd7583f3
1 file changed+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -960,7 +960,7 @@ include = do
960960 mconcat <$> forM fs' (\f -> do
961961 containers <- stateContainers <$> getState
962962 when (f `elem` containers) $
963− throwError $ PandocParseError $ "Include file loop in " ++ f
963+ throwError $ PandocParseError $ "Include file loop at " ++ show oldPos
964964 updateState $ \s -> s{ stateContainers = f : stateContainers s }
965965 contents <- lift $ readTeXFile f
966966 setPosition $ newPos f 1 1