bug report GUI: guard against `raco pkg show' errors

Various things can go wrong with `raco pkg show', including
permission errors or lock conflicts.

Merge to v5.3.2
This commit is contained in:
Matthew Flatt 2013-01-13 07:48:37 -07:00
parent b5d874e35d
commit d2ce3f714b

View File

@ -446,7 +446,9 @@
(define planet2-info-sp (open-output-string))
(parameterize ([current-output-port planet2-info-sp])
(planet2:show))
(with-handlers ([exn:fail? (lambda (exn)
(printf "ERROR:\n~a" (exn-message exn)))])
(planet2:show)))
(send (send planet2-info get-editor)
insert
(get-output-string planet2-info-sp))