Bugfixes.

- Return after an error in RPC.
- Use an empty vim table for serialization.
This commit is contained in:
Ashkan Kiani
2019-11-20 11:36:50 -08:00
parent 3ae9b3781e
commit 0904ffe387
2 changed files with 2 additions and 1 deletions

View File

@@ -340,6 +340,7 @@ local function create_and_start_client(cmd, cmd_args, handlers, extra_spawn_para
local decoded, err = json_decode(body)
if not decoded then
on_error(client_errors.INVALID_SERVER_JSON, err)
return
end
local _ = log.debug() and log.debug("decoded", decoded)