diff --git a/Development/nmos/api_utils.cpp b/Development/nmos/api_utils.cpp index 02dbab8a..a4fa44be 100644 --- a/Development/nmos/api_utils.cpp +++ b/Development/nmos/api_utils.cpp @@ -651,12 +651,14 @@ namespace nmos slog::log(gate, SLOG_FLF) << "HTTP error: " << e.what() << " [" << e.error_code() << "]"; set_error_reply(res, status_codes::BadRequest, e); } +#ifdef BST_THREAD_BOOST // Boost lock error indicates cannot get lock, perhaps lock limit exceeded catch (const boost::lock_error& e) { slog::log(gate, SLOG_FLF) << "Boost lock error: " << e.what() << " Perhaps lock limit exceeded"; set_error_reply(res, status_codes::ServiceUnavailable, {}, U("Cannot get lock. Perhaps lock limit exceeded")); } +#endif // while a runtime_error (often) indicates an unimplemented feature catch (const std::runtime_error& e) {