From e61216a593d21990e4a671308d380b1f0fcf166c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 27 Feb 2019 15:33:07 +1100 Subject: [PATCH] io: use the actual path when loggin failures --- io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.cpp b/io.cpp index 3e6be2fe..68a191ff 100644 --- a/io.cpp +++ b/io.cpp @@ -231,8 +231,8 @@ scoped_cwd::~scoped_cwd () /////////////////////////////////////////////////////////////////////////////// -path_error::path_error (const std::filesystem::path &_path): - runtime_error (to_string (format::printf ("Unknown path: %!", m_path))), +path_error::path_error (std::filesystem::path const &_path): + runtime_error (to_string (format::printf ("Unknown path: %!", _path))), m_path (_path) { ; }