Update insecure error message to be more helpful

master
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
1 changed files with 2 additions and 1 deletions

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