mirror of
https://github.com/matrix-construct/construct
synced 2024-06-08 13:08:56 +02:00
ircd:Ⓜ️:sync: Improve sync::item exception propagation; stop propagation.
This commit is contained in:
parent
7af4e85631
commit
4333e510ef
|
@ -307,6 +307,14 @@ try
|
|||
this_ctx::interruption_point();
|
||||
return ret;
|
||||
}
|
||||
catch(const ctx::interrupted &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(const std::system_error &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(const std::bad_function_call &e)
|
||||
{
|
||||
log::dwarning
|
||||
|
@ -334,7 +342,7 @@ catch(const m::error &e)
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::derror
|
||||
log::critical
|
||||
{
|
||||
log, "polylog %s '%s' :%s",
|
||||
loghead(data),
|
||||
|
@ -342,7 +350,7 @@ catch(const std::exception &e)
|
|||
e.what()
|
||||
};
|
||||
|
||||
throw;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -354,6 +362,14 @@ try
|
|||
|
||||
return _linear(data);
|
||||
}
|
||||
catch(const ctx::interrupted &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(const std::system_error &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(const std::bad_function_call &e)
|
||||
{
|
||||
thread_local char rembuf[128];
|
||||
|
@ -382,7 +398,7 @@ catch(const m::error &e)
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::derror
|
||||
log::critical
|
||||
{
|
||||
log, "linear %s '%s' :%s",
|
||||
loghead(data),
|
||||
|
@ -390,7 +406,7 @@ catch(const std::exception &e)
|
|||
e.what()
|
||||
};
|
||||
|
||||
throw;
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
Loading…
Reference in a new issue