Skip to content

Commit

Permalink
chore(classes): Return more informative error message when failing to…
Browse files Browse the repository at this point in the history
… finish class
  • Loading branch information
alerque committed Sep 29, 2023
1 parent 770d2b9 commit d392927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ function class:finish ()
end
SILE.typesetter:runHooks("pageend") -- normally run by the typesetter
self:endPage()
if SILE.typesetter then
assert(SILE.typesetter:isQueueEmpty(), "queues not empty")
if SILE.typesetter and not SILE.typesetter:isQueueEmpty() then
SU.error("Queues are not empty as expected after ending last page", true)
end
SILE.outputter:finish()
self:runHooks("finish")
Expand Down

0 comments on commit d392927

Please sign in to comment.