Update insecure error message to be more helpful

This commit is contained in:
ExeVirus 2021-07-20 17:09:30 -04:00 committed by GitHub
parent a51b7eb994
commit da709a9f09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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