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
(cherry picked from commit d2ce3f714b)
This commit is contained in:
Matthew Flatt 2013-01-13 07:48:37 -07:00 committed by Ryan Culpepper
parent c186269d08
commit 7710498e70

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))