You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix for #139
* indentation
* Add errorCode export in votemanager
* Remove duplicate errorCode in race and use new votemanager errorCode export
* Error out instead if trying to set an already defined error code
Co-authored-by: Patrik Juvonen <[email protected]>
assert(type(votemanagerErrorCodes) =="table", "Error codes returned from votemanager are not of table type. Got [" ..type(votemanagerErrorCodes) .."].")
11
+
12
+
forkey, codeinpairs(votemanagerErrorCodes) do
13
+
-- If the error code is defined already, error out
14
+
assert(errorCode[key] ==nil, "Error code conflict! Error code '" ..key.."' already defined in race!")
15
+
errorCode[key] =code
16
+
end
17
+
else
18
+
outputDebugString("Could not load error codes from votemanager because it is not running.", 1)
19
+
end
20
+
else
21
+
outputDebugString("Could not load error codes from votemanager because it is not available.", 1)
0 commit comments