@@ -60,7 +60,11 @@ ormolu cfg path str = do
60 -- same as AST of original snippet module span positions.
60 -- same as AST of original snippet module span positions.
61 unless (cfgUnsafe cfg) $ do
61 unless (cfgUnsafe cfg) $ do
62 (_, result1) <-
62 (_, result1) <-
63− parseModule' cfg OrmoluOutputParsingFailed "<rendered>" (T.unpack txt)
65+ OrmoluOutputParsingFailed
66+ (path ++ "<rendered>")
64 when (diff result0 result1) $
68 when (diff result0 result1) $
65 liftIO $ throwIO (OrmoluASTDiffers str txt)
69 liftIO $ throwIO (OrmoluASTDiffers str txt)
66 return txt
70 return txt