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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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