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()
|
||||
{
|
||||
/* Make sure no exceptions leave this function.
|
||||
printError() also throws when remote is closed. */
|
||||
try {
|
||||
try {
|
||||
throw;
|
||||
} catch (std::exception & e) {
|
||||
printError("error (ignored): %1%", e.what());
|
||||
}
|
||||
} catch (...) { }
|
||||
}
|
||||
|
||||
bool shouldANSI()
|
||||
|
|
Loading…
Reference in a new issue