diff --git a/Premake/ProjectUtil.lua b/Premake/ProjectUtil.lua index 2bef182..bc5a832 100644 --- a/Premake/ProjectUtil.lua +++ b/Premake/ProjectUtil.lua @@ -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.