mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-05 03:17:09 +01:00
Handle Poco exceptions explicitly.
This commit is contained in:
1 parent
505650837e
commit
1f2b75ed26
12 files changed
+119
-3
No files matched your search
@@ -391,8 +391,12 @@ template < typename F, typename U, typename... Ts > SQInteger SqDynArgFwd(HSQUIR
|
||||
try
|
||||
{
|
||||
return SqDynArgImpl< U, Ts... >::Try(fn, vm);
|
||||
}
|
||||
catch (const Poco::Exception& e)
|
||||
{
|
||||
return sq_throwerror(vm, e.displayText().c_str());
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user