mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
- Cybeloras: Fix for "Error with code: bad argument #1 to "format" (string expected, got nil)"
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
--[[
|
||||
Name: LibDogTag-3.0
|
||||
Revision: $Rev$
|
||||
Revision: @project-revision@
|
||||
Author: Cameron Kenneth Knight (ckknight@gmail.com)
|
||||
Website: http://www.wowace.com/
|
||||
Description: A library to provide a markup syntax
|
||||
]]
|
||||
|
||||
local MAJOR_VERSION = "LibDogTag-Unit-3.0"
|
||||
local MINOR_VERSION = 90000 + tonumber(("$Revision$"):match("%d+")) or 0
|
||||
local MINOR_VERSION = 90000 + tonumber(("@project-revision@"):match("%d+")) or 0
|
||||
|
||||
if MINOR_VERSION > _G.DogTag_Unit_MINOR_VERSION then
|
||||
_G.DogTag_Unit_MINOR_VERSION = MINOR_VERSION
|
||||
@ -289,7 +289,9 @@ DogTag:AddCompilationStep("Unit", "start", function(t, ast, kwargTypes, extraKwa
|
||||
t[#t+1] = "\n"
|
||||
t[#t+1] = [=[return ("Bad unit: %q"):format(]=]
|
||||
t[#t+1] = extraKwargs["unit"][1]
|
||||
t[#t+1] = [=[), nil;]=]
|
||||
t[#t+1] = [=[ or tostring(]=]
|
||||
t[#t+1] = extraKwargs["unit"][1]
|
||||
t[#t+1] = [=[)), nil;]=]
|
||||
t[#t+1] = "\n"
|
||||
t[#t+1] = [=[end;]=]
|
||||
t[#t+1] = "\n"
|
||||
|
Reference in New Issue
Block a user