Skip to content
Snippets Groups Projects
Commit 4630b745 authored by bigbes's avatar bigbes
Browse files

tarantoolctl eval now showh errors. Closes gh-1641.

parent f407cbb7
No related branches found
No related tags found
No related merge requests found
......@@ -623,8 +623,16 @@ local function eval()
'loadstring(require("digest").base64_decode([[%s]]))()',
content
)
remote:console(code)
local full_response = remote:console(code)
local error_response = yaml.decode(full_response)[1]
if type(error_response) == 'table' and error_response.error then
log.error("Error, while reloading config:")
log.info(error_response.error)
return 3
end
print(full_response)
return 0
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