Skip to content

Commit

Permalink
Add newline to Parse error message in C++ backend
Browse files Browse the repository at this point in the history
There was a missing newline on the error message where the parsing failed
  • Loading branch information
meemsbror authored and andreasabel committed Nov 11, 2020
1 parent 3ca7211 commit 05fd394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/CPP/STL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ cpptest inPackage cf =
" try { ",
" parse_tree = " ++ scope ++ "p" ++ def ++ "(input);",
" } catch( " ++ scope ++ "parse_error &e) {",
" std::cerr << \"Parse error on line \" << e.getLine(); ",
" std::cerr << \"Parse error on line \" << e.getLine() << \"\\n\"; ",
" }",
" if (parse_tree)",
" {",
Expand Down

0 comments on commit 05fd394

Please sign in to comment.