]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Print the position where an unexpected tag appeared
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 11 Nov 2008 22:09:08 +0000 (23:09 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 11 Nov 2008 23:15:45 +0000 (00:15 +0100)
scripts/musicxml2ly.py

index ec218822144449de9be8bfea665d1083001e5829..83bcfa553aaab174065620c63a04c16fdb9c801a 100644 (file)
@@ -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)