src/Pure/System/command_line.scala
changeset 73963 59b6f0462086
parent 73340 0ffcad1f6130
child 74068 62e4ec8cff38
--- a/src/Pure/System/command_line.scala	Sun Jul 11 13:48:01 2021 +0200
+++ b/src/Pure/System/command_line.scala	Sun Jul 11 16:57:30 2021 +0200
@@ -21,8 +21,6 @@
     def unapplySeq(list: List[String]): Option[List[List[String]]] = Some(chunks(list))
   }
 
-  var debug = false
-
   def tool(body: => Unit): Unit =
   {
     val thread =
@@ -31,7 +29,7 @@
           try { body; 0 }
           catch {
             case exn: Throwable =>
-              Output.error_message(Exn.message(exn) + (if (debug) "\n" + Exn.trace(exn) else ""))
+              Output.error_message(Exn.print(exn))
               Exn.return_code(exn, 2)
           }
         sys.exit(rc)