Skip to content
Snippets Groups Projects
Unverified Commit b0b19992 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Alexander Turenko
Browse files

console: fix usage of an undeclared variable


Console client's eval() method in case of an error at
reading from a socket was trying to return a variable
declared in a different view scope. Instead, the
error should be raised to drop the connection.

Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
(cherry picked from commit 89ec1d97)
parent 9a045c59
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@ local text_connection_mt = {
self.print_f(rc)
end
end
return rc
return error(self:set_error())
end,
--
-- Make the connection be in error state, set error
......
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