mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-29 18:33:01 +00:00
first usage of handle_fn_result
This commit is contained in:
parent
0915a83151
commit
9efaecc13a
2 changed files with 4 additions and 2 deletions
|
@ -59,6 +59,8 @@ wea_c.register_command("test", {
|
|||
tests[params_text[1]]:help()}, " ")
|
||||
end
|
||||
end
|
||||
return tests[subcommand](name, params_text)
|
||||
return wea_c.format.handle_fn_result(
|
||||
tests[subcommand](name, params_text)
|
||||
)
|
||||
end
|
||||
})
|
|
@ -17,7 +17,7 @@ local function handle_fn_result(...)
|
|||
"Function returned \"",
|
||||
tostring(success),
|
||||
"\" with no other output."
|
||||
}, " ")
|
||||
}, "")
|
||||
end
|
||||
return success, ret
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue