]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4638: Make trailing garbage in chord mode a parser error
authorDavid Kastrup <dak@gnu.org>
Sun, 18 Oct 2015 12:37:34 +0000 (14:37 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 23 Oct 2015 16:02:16 +0000 (18:02 +0200)
Previously, this was just a warning, resulting in no useful error location
for the user.

scm/chord-entry.scm

index ca864f3e1057fe44d32d8ac825a302a7dee9607c..1d41c973e80330876afc9de25d5e090e4bc223ef 100644 (file)
@@ -51,7 +51,8 @@ Entry point for the parser."
             (set! bass (cadr mods))
             (set! mods (cddr mods))))
       (if (pair? mods)
-          (ly:warning (_ "Spurious garbage following chord: ~A") mods))
+          (ly:parser-error
+           (format #f (_ "Spurious garbage following chord: ~A") mods)))
       chord)
 
     (define (interpret-removals  chord mods)