]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-parser.cc
Issue 4439/1: Use Input::non_fatal_error instead of Input::error where appropriate
[lilypond.git] / lily / lily-parser.cc
index 93d9a055c7fec9dd563190425a2fcad03c73e962..170a5e77e4a2736157db88a80a2b0ba87cfdb10d 100644 (file)
@@ -189,14 +189,14 @@ Lily_parser::clear ()
 void
 Lily_parser::parser_error (const string &s)
 {
-  lexer_->here_input ().error (_ (s.c_str ()));
+  lexer_->here_input ().non_fatal_error (_ (s.c_str ()));
   error_level_ = 1;
 }
 
 void
 Lily_parser::parser_error (Input const &i, const string &s)
 {
-  i.error (s);
+  i.non_fatal_error (s);
   error_level_ = 1;
 }