From 48ab7a17cf14588f36c601bf9aca2f74e801f2a9 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 5 Oct 2022 21:49:33 +0200 Subject: Lua: produce more informative error messages for pandoc errors Errors are reported in Lua in the same words in which they would be reported in the terminal. --- pandoc-lua-engine/test/lua/module/pandoc-template.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pandoc-lua-engine/test/lua/module') diff --git a/pandoc-lua-engine/test/lua/module/pandoc-template.lua b/pandoc-lua-engine/test/lua/module/pandoc-template.lua index c288b2016..638b31f09 100644 --- a/pandoc-lua-engine/test/lua/module/pandoc-template.lua +++ b/pandoc-lua-engine/test/lua/module/pandoc-template.lua @@ -50,7 +50,7 @@ return { test('fails if template has non-existing partial', function () assert.error_matches( function () return template.compile('${ nosuchpartial() }') end, - 'PandocCouldNotFindDataFileError' + 'Could not find data file templates/nosuchpartial' ) end), test('works with default template that uses partials', function () -- cgit v1.2.3