first usage of handle_fn_result

This commit is contained in:
VorTechnix 2024-10-17 09:02:49 -07:00
parent 0915a83151
commit 9efaecc13a
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA
2 changed files with 4 additions and 2 deletions

View file

@ -59,6 +59,8 @@ wea_c.register_command("test", {
tests[params_text[1]]:help()}, " ") tests[params_text[1]]:help()}, " ")
end end
end end
return tests[subcommand](name, params_text) return wea_c.format.handle_fn_result(
tests[subcommand](name, params_text)
)
end end
}) })

View file

@ -17,7 +17,7 @@ local function handle_fn_result(...)
"Function returned \"", "Function returned \"",
tostring(success), tostring(success),
"\" with no other output." "\" with no other output."
}, " ") }, "")
end end
return success, ret return success, ret
end end