diff options
| author | Albert Krewinkel <[email protected]> | 2022-10-05 21:49:33 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-10-05 21:53:03 +0200 |
| commit | 48ab7a17cf14588f36c601bf9aca2f74e801f2a9 (patch) | |
| tree | 65639d7bd9ca1ffed0e3d646a84f509708afcff1 /pandoc-lua-engine/test | |
| parent | b05c380f6ff4375cbc27955653fd31310ff2f94d (diff) | |
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.
Diffstat (limited to 'pandoc-lua-engine/test')
| -rw-r--r-- | pandoc-lua-engine/test/lua/module/pandoc-template.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 () |
