File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ std::string source_locationt::as_string(bool print_cwd) const
37
37
dest+=' ' ;
38
38
dest+=" file " ;
39
39
if (print_cwd)
40
+ {
40
41
dest+=
41
- std::filesystem::path (id2string (get_working_directory ())).append (id2string (file));
42
+ std::filesystem::path (id2string (get_working_directory ())).append (id2string (file)).string ();
43
+ }
42
44
else
43
45
dest+=id2string (file);
44
46
}
@@ -89,7 +91,7 @@ optionalt<std::string> source_locationt::full_path() const
89
91
if (file.empty () || is_built_in (file))
90
92
return {};
91
93
92
- return std::filesystem::path (id2string (get_working_directory ())).append (file);
94
+ return std::filesystem::path (id2string (get_working_directory ())).append (file). string () ;
93
95
}
94
96
95
97
std::ostream &operator << (
You can’t perform that action at this time.
0 commit comments