]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
Issue 5094: Change error message for unrecognized strings
[lilypond.git] / lily / parser.yy
index 35d858c46f6dbef1c383c3588bc7dba697fc914b..d4ab27c2bb320b804e4b16862e2910da59298aa6 100644 (file)
@@ -3600,7 +3600,7 @@ lyric_element:
        }
        | STRING {
                if (!parser->lexer_->is_lyric_state ())
-                       parser->parser_error (@1, _ ("unrecognized string, not in text script or \\lyricmode"));
+                       parser->parser_error (@1, _f ("not a note name: %s", ly_scm2string ($1)));
                $$ = $1;
        }
        | LYRIC_ELEMENT