utils.printWarning¶
utils.printWarning(str)
Arguments¶
Argument | Data Type | Optional | Default Value | Explanation |
---|---|---|---|---|
str | string | No | - | Sets a warning |
Dependency¶
local utils = M("utils")
Example¶
local warning = utils.printWarning("This is a warning")
print(warning) -- Returns [WARNING] This is a warning