drscheme:rep:insert-error-in-text in DrScheme Tools Functions
(drscheme:rep:insert-error-in-text -> void?
text rep-text msg exn dir)
text : (is-a?/c text%)
rep-text : (union false? (is-a?/c drscheme:rep:text<%>))
msg : string?
exn : exn?
dir : (union false? (and/c string? directory-exists?))
Formats and inserts the error message described by
msg and exn into the text
The rep-text argument is used to trigger the actual
highlighting.
The msg and exn arguments are expected to
come from the
,
when the
error-display-handlererror-print-source-location
parameter is set to #f.
The user-dir argument is the current directory of
the program where the error occurred. If it is a string,
it is used to shorten the path the file where the error
occurred.
See also
drscheme:rep:insert-error-in-text/highlight-errors.