diff options
author | rubenwardy <rubenwardy@gmail.com> | 2015-07-30 09:38:27 +0100 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2015-07-30 09:38:27 +0100 |
commit | 5c7cc84456e9415645ce0d288e44cded80f9d0de (patch) | |
tree | 4f4d191ec6e6c46f4e76b36f6d30e1b677ef1938 | |
parent | 7c0a7b5a330b867e486081cc6be642f9b4fe7c31 (diff) |
Tell user how to ignore no fallback error.
-rw-r--r-- | food/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/food/init.lua b/food/init.lua index 60a52a6..5e2def6 100644 --- a/food/init.lua +++ b/food/init.lua @@ -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 |