Skip to content
Snippets Groups Projects
Unverified Commit c68d6300 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Alexander Turenko
Browse files

box/console: handle empty output format


In case if output format is not specified we should exit
with more readable error message.

Fixes #4638

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
(cherry picked from commit 9cc2c9c5)
parent 64d3ac43
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,9 @@ end
local function parse_output(value)
local fmt, opts
if not value then
return 'Specify output format: lua or yaml.'
end
if value:match("([^,]+),([^,]+)") ~= nil then
fmt, opts = value:match("([^,]+),([^,]+)")
else
......
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