src/Pure/Thy/sessions.scala
changeset 75923 e4ada7b9e328
parent 75922 b327e5d5d6b4
child 75967 ff164add75cd
equal deleted inserted replaced
75922:b327e5d5d6b4 75923:e4ada7b9e328
   568 
   568 
   569       val theories =
   569       val theories =
   570         entry.theories.map({ case (opts, thys) =>
   570         entry.theories.map({ case (opts, thys) =>
   571           (session_options ++ opts,
   571           (session_options ++ opts,
   572             thys.map({ case ((thy, pos), _) =>
   572             thys.map({ case ((thy, pos), _) =>
   573               if (illegal_theory(thy)) {
   573               val thy_name = Thy_Header.import_name(thy)
   574                 error("Illegal theory name " + quote(thy) + Position.here(pos))
   574               if (illegal_theory(thy_name)) {
       
   575                 error("Illegal theory name " + quote(thy_name) + Position.here(pos))
   575               }
   576               }
   576               else (thy, pos) })) })
   577               else (thy, pos) })) })
   577 
   578 
   578       val global_theories =
   579       val global_theories =
   579         for { (_, thys) <- entry.theories; ((thy, pos), global) <- thys if global }
   580         for { (_, thys) <- entry.theories; ((thy, pos), global) <- thys if global }