Skip to content
Snippets Groups Projects
Commit da3f95d5 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix error arrow position (^ on the second line)

parent b0278d86
No related branches found
No related tags found
1 merge request!66Feature/reduced verbosity
......@@ -111,7 +111,7 @@ parser(const std::string& filename)
<< rang::fgB::red << "error: " << rang::fg::reset << rang::style::bold << e.what() << rang::style::reset
<< '\n'
<< input.line_at(p) << '\n'
<< std::string(p.column, ' ') << rang::fgB::yellow << '^' << rang::fg::reset << '\n';
<< std::string(p.column - 1, ' ') << rang::fgB::yellow << '^' << rang::fg::reset << '\n';
finalize();
std::exit(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment