src/Pure/PIDE/command.scala
changeset 59708 aed304412e43
parent 59706 bf6ca55aae13
child 59713 6da3efec20ca
--- a/src/Pure/PIDE/command.scala	Sun Mar 15 22:05:08 2015 +0100
+++ b/src/Pure/PIDE/command.scala	Sun Mar 15 22:15:08 2015 +0100
@@ -364,8 +364,10 @@
           resources.check_thy_reader("", node_name,
             new CharSequenceReader(span.source), Token.Pos.id(Markup.COMMAND))
         val import_errors =
-          for ((imp, pos) <- header.imports if !can_import(imp))
-            yield "Bad theory import " + quote(imp.node) + Position.here(pos)
+          for ((imp, pos) <- header.imports if !can_import(imp)) yield {
+            val name = imp.node
+            "Bad theory import " + Markup.Path(name).markup(quote(name)) + Position.here(pos)
+          }
         ((header.errors ::: import_errors).map(msg => Exn.Exn(ERROR(msg)): Command.Blob), -1)
 
       // auxiliary files