BizHawkClient: Add some handling for non-string errors (#2656)
This commit is contained in:
parent
e5c739ee31
commit
bf17582c55
|
@ -456,6 +456,7 @@ function send_receive ()
|
||||||
failed_guard_response = response
|
failed_guard_response = response
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if type(response) ~= "string" then response = "Unknown error" end
|
||||||
res[i] = {type = "ERROR", err = response}
|
res[i] = {type = "ERROR", err = response}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue