mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-17 17:39:54 +08:00
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.
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user