# HG changeset patch # User Alain Mazy # Date 1700642337 -3600 # Node ID 6f2b11bfee8d245002a520dc9e411590172546c0 # Parent 4be5f117aa0d0456833da01aca3236b150b089b4 handle unknown exceptions in job registry unserialization diff -r 4be5f117aa0d -r 6f2b11bfee8d OrthancServer/Sources/ServerContext.cpp --- a/OrthancServer/Sources/ServerContext.cpp Tue Nov 21 10:32:42 2023 +0100 +++ b/OrthancServer/Sources/ServerContext.cpp Wed Nov 22 09:38:57 2023 +0100 @@ -285,6 +285,14 @@ { LOG(WARNING) << "Cannot unserialize the jobs engine, starting anyway: " << e.What(); } + catch (const std::string& s) + { + LOG(WARNING) << "Cannot unserialize the jobs engine, starting anyway: \"" << s << "\""; + } + catch (...) + { + LOG(WARNING) << "Cannot unserialize the jobs engine, starting anyway"; + } } else {