Skip to content

Commit

Permalink
first usage of handle_fn_result
Browse files Browse the repository at this point in the history
  • Loading branch information
VorTechnix committed Oct 17, 2024
1 parent 0915a83 commit 9efaecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion worldeditadditions_commands/commands/test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
2 changes: 1 addition & 1 deletion worldeditadditions_core/utils/format/handle_fn_result.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local function handle_fn_result(...)
"Function returned \"",
tostring(success),
"\" with no other output."
}, " ")
}, "")
end
return success, ret
end
Expand Down

0 comments on commit 9efaecc

Please sign in to comment.