Skip to content

Commit ca07fe2

Browse files
committed
please fix it
1 parent d01d28d commit ca07fe2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/arkreactor/Error/Diagnostics.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ namespace Ark::Diagnostics
6565
else if (maybe_context && !ctx_same_file && !maybe_context->filename.empty())
6666
{
6767
// show the location of the parent of our error first
68-
fmt::print(os, "Error originated from file {}:{}\n", maybe_context->filename, maybe_context->at.start.line + 1);
68+
std::string uniformised_filename;
69+
std::ranges::replace_copy(maybe_context->filename, std::back_inserter(uniformised_filename), '\\', '/');
70+
fmt::print(os, "Error originated from file {}:{}\n", uniformised_filename, maybe_context->at.start.line + 1);
6971

7072
std::optional<decltype(internal::FilePos::line)> maybe_end_line = std::nullopt;
7173
if (maybe_context->at.end)

0 commit comments

Comments
 (0)