]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/translation-functions.scm
Issue 3484: Give input location for "No string for pitch ..." warning
[lilypond.git] / scm / translation-functions.scm
index bc988ebd5a79e5854806b65216727c5a596ec43b..5d40da8cfaaabfeafd3efc7e9368e1497669e4e8 100644 (file)
@@ -464,9 +464,11 @@ the current tuning?"
                (if fit-string
                    (set-fret! pitch-entry fit-string finger)
                    (begin
-                     (ly:warning (_ "No string for pitch ~a (given frets ~a)")
-                                 pitch
-                                 specified-frets)
+                     (ly:event-warning
+                      (list-ref notes (cdr pitch-entry))
+                      (_ "No string for pitch ~a (given frets ~a)")
+                      pitch
+                      specified-frets)
                      (kill-note! string-fret-fingers
                                  (cdr pitch-entry)))))))
        (sort pitch-alist (lambda (pitch-entry-a pitch-entry-b)