Skip to content

Commit

Permalink
fix(cli): Avoid throwing extra error on error without message
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 26, 2022
1 parent bd06191 commit 0d530a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sile.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if SILE.masterFilename then
if type(err) == "string" and err:match(": interrupted!") then
SILE.outputter:finish()
else
io.stderr:write("\nError detected:\n\t"..err.."\n")
io.stderr:write("\nError detected:\n\t" .. tostring(err) .. "\n")
end
os.exit(1)
end
Expand Down

0 comments on commit 0d530a5

Please sign in to comment.