fix drracket's stacktrace handling in the case that something strange

shows up as the source field in an exception record
This commit is contained in:
Robby Findler 2014-07-13 22:30:05 -05:00
parent e063b654fa
commit 8f0c0f5405

View File

@ -1002,7 +1002,8 @@ profile todo:
(values #f void)))]
[(is-a? file editor<%>)
(values file void)]
[else (error 'insert-context "unknown file spec ~e" file)])])
[else
(values #f void)])])
(when from-text
(let* ([finish (+ start span -1)]
[context-text (copy/highlight-text from-text start finish)])