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:
@ -699,7 +699,7 @@ void Session::ForwardEvent(Function & listener, CCStr event, CCStr origin, CCStr
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
SqMod_LogErr("IRC event [%s] => Squirrel error [%s]", event, e.Message().c_str());
|
||||
SqMod_LogErr("IRC event [%s] => Squirrel error [%s]", event, e.what());
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
@ -743,7 +743,7 @@ void Session::ForwardEvent(Function & listener, Uint32 event,
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
SqMod_LogErr("IRC event [%s] => Squirrel error [%s]", event, e.Message().c_str());
|
||||
SqMod_LogErr("IRC event [%s] => Squirrel error [%s]", event, e.what());
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
@ -1014,7 +1014,7 @@ SQInteger Session::CmdMsgF(HSQUIRRELVM vm)
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
// Propagate the error
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// Do we have a valid session instance?
|
||||
if (!session)
|
||||
@ -1078,7 +1078,7 @@ SQInteger Session::CmdMeF(HSQUIRRELVM vm)
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
// Propagate the error
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// Do we have a valid session instance?
|
||||
if (!session)
|
||||
@ -1142,7 +1142,7 @@ SQInteger Session::CmdNoticeF(HSQUIRRELVM vm)
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
// Propagate the error
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// Do we have a valid session instance?
|
||||
if (!session)
|
||||
|
@ -363,7 +363,7 @@ SQInteger Connection::ExecF(HSQUIRRELVM vm)
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
// Propagate the error
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// Do we have a valid connection instance?
|
||||
if (!conn)
|
||||
@ -414,7 +414,7 @@ SQInteger Connection::QueueF(HSQUIRRELVM vm)
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
// Propagate the error
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// Do we have a valid connection instance?
|
||||
if (!conn)
|
||||
@ -458,7 +458,7 @@ SQInteger Connection::QueryF(HSQUIRRELVM vm)
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
// Propagate the error
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// Do we have a valid connection instance?
|
||||
if (!conn)
|
||||
@ -484,7 +484,7 @@ SQInteger Connection::QueryF(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
// This function returned a value
|
||||
return 1;
|
||||
|
@ -127,7 +127,7 @@ Int32 ConnHnd::Flush(Uint32 num, Object & env, Function & func)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
SqMod_LogErr("Squirrel error caught in flush handler [%s]", e.Message().c_str());
|
||||
SqMod_LogErr("Squirrel error caught in flush handler [%s]", e.what());
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user