From 041d834135d726b56d8eb13dfcbc52c6b3ce6dcf Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 18 Oct 2015 14:37:34 +0200 Subject: [PATCH] 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. --- scm/chord-entry.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2