Skip to content
Snippets Groups Projects
Commit 4fbeb2d9 authored by DarkGod's avatar DarkGod
Browse files

Item's vault will give more info on error

parent da3e0064
No related branches found
No related tags found
No related merge requests found
......@@ -606,9 +606,9 @@ end
function _M:orderEntityPoke(o)
self:command("EVLT", "POKE", o.desc:len(), o.data:len(), o.module, o.kind, o.name)
if not self:read("200") then return cprofile.pushEvent("e='EntityPoke' ok=false") end
if not self:read("200") then return cprofile.pushEvent(("e='EntityPoke' ok=false err=%q"):format(self.last_error)) end
self.sock:send(o.desc)
if not self:read("200") then return cprofile.pushEvent("e='EntityPoke' ok=false") end
if not self:read("200") then return cprofile.pushEvent("e='EntityPoke' ok=false err='unknown reason'") end
self.sock:send(o.data)
cprofile.pushEvent("e='EntityPoke' ok=true")
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