forked from mtcontrib/food
Tell user how to ignore no fallback error.
This commit is contained in:
parent
7c0a7b5a33
commit
5c7cc84456
|
@ -98,7 +98,8 @@ function food.module(name, func, ingred)
|
|||
if food.suppress_no_fallback_error then
|
||||
print("Warning: Fallbacks are disabled, and no item for " .. name .. " registered!")
|
||||
else
|
||||
error("Food: Fallbacks are disabled, and no item for " .. name .. " registered!")
|
||||
error("Food: Fallbacks are disabled, and no item for " .. name .. " registered!" ..
|
||||
"\nUse setting food.suppress_no_fallback_error = true to ignore this error.")
|
||||
end
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user