more friendly message for spurious InterruptedException, which might still occur due to JVM oddities;
authorwenzelm
Sat, 23 Feb 2013 17:12:48 +0100
changeset 523929db9e8c608ea
parent 52391 5bae6fc0e125
child 52393 ee836df361ed
more friendly message for spurious InterruptedException, which might still occur due to JVM oddities;
src/Pure/General/exn.scala
     1.1 --- a/src/Pure/General/exn.scala	Sat Feb 23 15:08:53 2013 +0100
     1.2 +++ b/src/Pure/General/exn.scala	Sat Feb 23 17:12:48 2013 +0100
     1.3 @@ -44,7 +44,9 @@
     1.4      else None
     1.5  
     1.6    def message(exn: Throwable): String =
     1.7 -    user_message(exn) getOrElse exn.toString
     1.8 +    user_message(exn) getOrElse
     1.9 +      (if (exn.isInstanceOf[InterruptedException]) "Interrupt"
    1.10 +       else exn.toString)
    1.11  
    1.12  
    1.13    /* recover from spurious crash */