mirror of
https://github.com/ExeVirus/formspec_editor.git
synced 2025-03-15 06:01:25 +00:00
Update insecure error message to be more helpful
This commit is contained in:
parent
a51b7eb994
commit
da709a9f09
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ local modpath = minetest.get_modpath("formspec_edit")
|
|||
|
||||
local insecure_env = minetest.request_insecure_environment()
|
||||
if not insecure_env then
|
||||
error("[formspec_editor] Cannot access insecure environment!")
|
||||
error("[formspec_editor] Cannot access insecure environment!\n"..
|
||||
"Please add 'formspec_edit' to your list of trusted mods in your settings")
|
||||
end
|
||||
|
||||
local io = insecure_env.io
|
||||
|
|
Loading…
Add table
Reference in a new issue