From: David Kastrup Date: Sun, 18 Oct 2015 12:37:34 +0000 (+0200) Subject: Issue 4638: Make trailing garbage in chord mode a parser error X-Git-Tag: release/2.19.30-1~5^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=041d834135d726b56d8eb13dfcbc52c6b3ce6dcf;p=lilypond.git Issue 4638: Make trailing garbage in chord mode a parser error Previously, this was just a warning, resulting in no useful error location for the user. --- diff --git a/scm/chord-entry.scm b/scm/chord-entry.scm index ca864f3e10..1d41c973e8 100644 --- a/scm/chord-entry.scm +++ b/scm/chord-entry.scm @@ -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)