1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-12-22 16:00:19 +01:00

Tell user how to ignore no fallback error.

This commit is contained in:
rubenwardy 2015-07-30 09:38:27 +01:00
parent 7c0a7b5a33
commit 5c7cc84456

View File

@ -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