From 4864761ad85082b07c49f95169d010c4739da9e1 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel <albert@zeitkraut.de> Date: Mon, 7 Feb 2022 09:45:32 +0100 Subject: [PATCH] Custom writer: produce stacktrace if Writer function fails --- src/Text/Pandoc/Writers/Custom.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs index af3fd8306..80f161c8a 100644 --- a/src/Text/Pandoc/Writers/Custom.hs +++ b/src/Text/Pandoc/Writers/Custom.hs @@ -51,5 +51,5 @@ writeCustom luaFile opts doc = either throw pure <=< runLua $ do -- options as arguments. push doc push opts - call 2 1 + callTrace 2 1 forcePeek $ peekText top