Skip to content

utils.printWarning

utils.printWarning(str)
This function print a warning.

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

Improve this documentation