mirror of
https://github.com/defold/extension-websocket.git
synced 2025-09-27 16:02:18 +02:00
Fix logging in example when error is nil
This commit is contained in:
@@ -73,7 +73,7 @@ local function websocket_callback(self, conn, data)
|
||||
update_gui(self)
|
||||
log("Connected: " .. tostring(conn))
|
||||
elseif data.event == websocket.EVENT_ERROR then
|
||||
log("Error: '" .. data.error .. "'")
|
||||
log("Error: '" .. tostring(data.error) .. "'")
|
||||
elseif data.event == websocket.EVENT_MESSAGE then
|
||||
log("Receiving: '" .. tostring(data.message) .. "'")
|
||||
end
|
||||
|
Reference in New Issue
Block a user