mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Adjust the code to use the .what() method from the Sqrat exception.
This commit is contained in:
@ -191,7 +191,7 @@ static SQInteger SqNanL(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (const std::exception e)
|
||||
{
|
||||
@ -696,7 +696,7 @@ static SQInteger SqRoundL(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
catch (const std::exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user