From 8494af41a2241c4bf60c3f2e92776ad079db21bf Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 11 Nov 2008 23:09:08 +0100 Subject: [PATCH] MusicXML: Print the position where an unexpected tag appeared --- scripts/musicxml2ly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index ec21882214..83bcfa553a 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -1822,7 +1822,7 @@ def musicxml_voice_to_lily_voice (voice): continue if not n.__class__.__name__ == 'Note': - error_message (_ ('unexpected %s; expected %s or %s or %s') % (n, 'Note', 'Attributes', 'Barline')) + n.message (_ ('unexpected %s; expected %s or %s or %s') % (n, 'Note', 'Attributes', 'Barline')) continue rest = n.get_maybe_exist_typed_child (musicxml.Rest) -- 2.39.5