Skip to content
Snippets Groups Projects
Commit 4138645e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Kirill Yukhin
Browse files

box/console: Don't allow arguments in get_default_output

The function

 | require('console').get_default_output()

requires no arguments. Make it explcicit and print
an error otherwise.

Part-of #3834
parent 69d4d53d
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,11 @@ local function set_default_output(value)
default_output_format["opts"] = opts
end
local function get_default_output()
local function get_default_output(...)
local args = ...
if args ~= nil then
error("Arguments provided while prohibited")
end
return default_output_format
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment