forked from lix-project/lix
Merge pull request #6057 from trofi/fix-daemon-crashes
Make sure no exceptions leave ignoreException()
This commit is contained in:
commit
725817c223
|
@ -1358,11 +1358,15 @@ std::string shellEscape(const std::string_view s)
|
||||||
|
|
||||||
void ignoreException()
|
void ignoreException()
|
||||||
{
|
{
|
||||||
|
/* Make sure no exceptions leave this function.
|
||||||
|
printError() also throws when remote is closed. */
|
||||||
|
try {
|
||||||
try {
|
try {
|
||||||
throw;
|
throw;
|
||||||
} catch (std::exception & e) {
|
} catch (std::exception & e) {
|
||||||
printError("error (ignored): %1%", e.what());
|
printError("error (ignored): %1%", e.what());
|
||||||
}
|
}
|
||||||
|
} catch (...) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
bool shouldANSI()
|
bool shouldANSI()
|
||||||
|
|
Loading…
Reference in a new issue