src/Pure/Tools/isabelle_system.scala
changeset 27993 6dd90ef9f927
parent 27974 1dfb0e260e4c
child 28046 1447932b1b13
     1.1 --- a/src/Pure/Tools/isabelle_system.scala	Mon Aug 25 16:52:11 2008 +0200
     1.2 +++ b/src/Pure/Tools/isabelle_system.scala	Mon Aug 25 20:01:17 2008 +0200
     1.3 @@ -20,13 +20,9 @@
     1.4      if (value != null) value else ""
     1.5    }
     1.6  
     1.7 -  class BadVariable(val name: String) extends Exception {
     1.8 -    override def toString = "BadVariable: " + name
     1.9 -  }
    1.10 -
    1.11    def getenv_strict(name: String) = {
    1.12      val value = getenv(name)
    1.13 -    if (value != "") value else throw new BadVariable(name)
    1.14 +    if (value != "") value else error("Undefined environment variable: " + name)
    1.15    }
    1.16  
    1.17