]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 5094: Change error message for unrecognized strings
authorDavid Kastrup <dak@gnu.org>
Tue, 14 Mar 2017 10:29:42 +0000 (11:29 +0100)
committerDavid Kastrup <dak@gnu.org>
Sun, 19 Mar 2017 17:06:04 +0000 (18:06 +0100)
Instead of mentioning the modes in which arbitrary strings would be
permissible, state that the string is not a note name.  This is more
likely to be helpful to users, particularly in the case of wrong
notename language.

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