BizHawkClient: Add some handling for non-string errors (#2656)

This commit is contained in:
Bryce Wilson
2024-01-02 03:32:03 -07:00
committed by GitHub
parent e5c739ee31
commit bf17582c55

View File

@@ -456,6 +456,7 @@ function send_receive ()
failed_guard_response = response
end
else
if type(response) ~= "string" then response = "Unknown error" end
res[i] = {type = "ERROR", err = response}
end
end