pull request #5999 according to review requests

This commit is contained in:
SirTobias 2021-04-30 08:54:52 +02:00 committed by GitHub
parent c514934ee1
commit 15989d8c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,8 +48,8 @@ template <typename Data> struct SharedMonitor
} }
catch (const bi::interprocess_exception &exception) catch (const bi::interprocess_exception &exception)
{ {
auto message = auto message = boost::format("could not create for shared memory block '%1' the directory or file '%2%' \n") %
boost::format("could not create directory or file '%1%' \n") % exception.what(); + (const char*)Data::name % exception.what();
throw util::exception(message.str() + SOURCE_REF); throw util::exception(message.str() + SOURCE_REF);
} }
@ -135,9 +135,9 @@ template <typename Data> struct SharedMonitor
} }
catch (const bi::interprocess_exception &exception) catch (const bi::interprocess_exception &exception)
{ {
auto message = auto message = boost::format("could not create for shared memory block '%1' the directory or file '%2%' \n") %
boost::format("could not create directory or file '%1%' \n") % exception.what(); + (const char*)Data::name % exception.what();
throw util::exception(message.str() + SOURCE_REF); return false;
} }
return true; return true;
} }