We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367f7d4 commit c4a7735Copy full SHA for c4a7735
src/util/source_location.cpp
@@ -37,8 +37,10 @@ std::string source_locationt::as_string(bool print_cwd) const
37
dest+=' ';
38
dest+="file ";
39
if(print_cwd)
40
+ {
41
dest+=
- std::filesystem::path(id2string(get_working_directory())).append(id2string(file));
42
+ std::filesystem::path(id2string(get_working_directory())).append(id2string(file)).string();
43
+ }
44
else
45
dest+=id2string(file);
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 {};
93
- return std::filesystem::path(id2string(get_working_directory())).append(file);
94
+ return std::filesystem::path(id2string(get_working_directory())).append(file).string();
95
96
97
std::ostream &operator << (
0 commit comments