mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-01-07 21:17:35 +01:00
first usage of handle_fn_result
This commit is contained in:
parent
0915a83151
commit
9efaecc13a
@ -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 New Issue
Block a user