cmbruns / pyopenvr

Unofficial python bindings for Valve's OpenVR virtual reality SDK
BSD 3-Clause "New" or "Revised" License
251 stars 40 forks source link

Save error code in the exception instance. #65

Closed risa2000 closed 4 years ago

risa2000 commented 5 years ago

When the wrapper raised an exception it did not preserve the original error value. This made the error message resolution (e.g. by using getPropErrorNameFromEnum) a bit tricky.

This patch also fixes the return value of the function getPropErrorNameFromEnum (was bytes, now string).