io: use the actual path when loggin failures

This commit is contained in:
Danny Robson 2019-02-27 15:33:07 +11:00
parent f381c24f29
commit e61216a593

4
io.cpp
View File

@ -231,8 +231,8 @@ scoped_cwd::~scoped_cwd ()
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
path_error::path_error (const std::filesystem::path &_path): path_error::path_error (std::filesystem::path const &_path):
runtime_error (to_string (format::printf ("Unknown path: %!", m_path))), runtime_error (to_string (format::printf ("Unknown path: %!", _path))),
m_path (_path) m_path (_path)
{ ; } { ; }