pull request #5999 according to review requests
This commit is contained in:
parent
c514934ee1
commit
15989d8c17
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user