Skip to content

Commit

Permalink
Fix PrintError in premake
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Aug 12, 2024
1 parent 8dd2fea commit a8e11be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Premake/ProjectUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ local function PrintError(msg)
end

local callerName = debugInfo.name
error("[" .. callerName .. "]" .. " : " .. msg, 2)
if callerName == nil then
error(": " .. msg, 2)
else
error("[" .. callerName .. "]" .. " : " .. msg, 2)
end
end

--[[ DumpObject(object, [limit], [indent]) Recursively print arbitrary data.
Expand Down

0 comments on commit a8e11be

Please sign in to comment.