Adding error message with undefined reference

svn: r6508

original commit: 597122b8b5c00f1d9f266d7d1c486d3fe63b0849
This commit is contained in:
Jay McCarthy 2007-06-06 21:52:12 +00:00
parent 365cd321fa
commit c3f8f90b4b

View File

@ -157,10 +157,11 @@
,@(if (null? (element-content e))
(render-content (cadr dest) part ht)
(render-content (element-content e) part ht))))
`((font ((class "badlink"))
,@(if (null? (element-content e))
`(,(format "~s" (link-element-tag e)))
(render-plain-element e part ht)))))))]
(begin (fprintf (current-error-port) "Undefined link: ~s~n" (link-element-tag e)) ; XXX Add source info
`((font ((class "badlink"))
,@(if (null? (element-content e))
`(,(format "~s" (link-element-tag e)))
(render-plain-element e part ht))))))))]
[else (render-plain-element e part ht)]))
(define/private (render-plain-element e part ht)