1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-14 14:51:42 +00:00

rethrow exceptions during openxr initialization.

This commit is contained in:
madsbuvi 2020-12-30 11:02:12 +01:00
parent 5148f4ecb0
commit ddc30fe6f4

View file

@ -81,9 +81,9 @@ namespace MWVR
}
catch (std::exception& e)
{
Log(Debug::Error) << "Exception thrown by OpenXR: " << e.what();
osg::ref_ptr<osg::State> state = gc->getState();
std::string error = std::string("Exception thrown while initializing OpenXR: ") + e.what();
Log(Debug::Error) << error;
throw std::runtime_error(error);
}
}
}