Skip to content

Commit

Permalink
chore(utilities): Cleanup whitespace in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 6, 2024
1 parent 6c0ec4d commit cd11c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ utilities.deprecated = function (old, new, warnat, errorat, extra)
-- Hence we fake it ‘till we make it, all deprecations internally are warnings.
local brackets = old:sub(1,1) == '\\' and "" or "()"
local _new = new and "Please use " .. (new .. brackets) .. " instead." or "Plase don't use it."
local msg = (old .. brackets) .. " was deprecated in SILE v" .. tostring(warnat) .. ". " .. _new .. (extra and "\n" .. extra .. "\n\n" or "")
local msg = (old .. brackets) .. " was deprecated in SILE v" .. tostring(warnat) .. ". " .. _new .. (extra and ("\n\n" .. extra .. "\n") or "")
if errorat and current >= errorat then
SU.error(msg)
elseif warnat and current >= warnat then
Expand Down

0 comments on commit cd11c56

Please sign in to comment.