From 3768238ca528db394e4777ac1e19b2091979e1c8 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 5 Jul 2014 13:29:45 -0400 Subject: [PATCH] Report the path along with the error message when an import fails. --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.hs b/src/Main.hs index 90f5f91..fc6d14b 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -96,7 +96,7 @@ import_file cfg path = do report_error $ "Unable to determine DTD for file " ++ path ++ "." return False (ImportFailed errmsg:_) -> do - report_error errmsg + report_error $ errmsg ++ " (" ++ path ++ ")" return False (ImportSkipped infomsg:_) -> do -- We processed the message but didn't import anything. Return -- 2.43.2