]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3666: Format error message for argument errors more nicely
authorDavid Kastrup <dak@gnu.org>
Sat, 16 Nov 2013 17:25:03 +0000 (18:25 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 15 Feb 2014 18:05:11 +0000 (19:05 +0100)
Actually, using display-lily-music here would be nicer, but it does not
cater for anything but music automatically like music->make-music
does.

scm/ly-syntax-constructors.scm

index b3d7f3f0f01cf942ef71f7db0caa19fd47db742f..5fe0bfbbefef410acd76fdf536c2b343695eaff9 100644 (file)
@@ -73,7 +73,7 @@
    parser
    (format #f
            (_ "wrong type for argument ~a.  Expecting ~a, found ~s")
-           n (type-name pred) arg)
+           n (type-name pred) (music->make-music arg))
    location))
 
 (define-ly-syntax-simple (void-music)