added the 'blaming' part of the contract message to self-contract violations (but kept 'self-')

This commit is contained in:
Robby Findler 2011-01-02 17:00:19 -06:00
parent 47e3db06ff
commit 193617f917

View File

@ -87,9 +87,13 @@
[(blame-original? b)
(string-append
(format "self-contract violation: ~a\n" custom-message)
(format " contract~a from ~a~a"
(format " contract~a from ~a~a blaming ~a~a"
value-message
positive-message
(if (regexp-match #rx"\n" positive-message)
" "
",")
positive-message
(if (regexp-match #rx"\n" positive-message)
""
"\n"))