mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
Add valid project IDs to 'No project <x> in <uri>' error message
This commit is contained in:
+4
-2
@@ -341,8 +341,10 @@ object Load
|
||||
{
|
||||
val ProjectRef(refURI, refID) = Scope.resolveProjectRef(uri, rootProject, ref)
|
||||
val loadedUnit = builds(refURI)
|
||||
if(! (loadedUnit.defined contains refID) )
|
||||
error("No project '" + refID + "' in '" + refURI + "'")
|
||||
if(! (loadedUnit.defined contains refID) ) {
|
||||
val projectIDs = loadedUnit.defined.keys.toSeq.sorted
|
||||
error("No project '" + refID + "' in '" + refURI + "'.\nValid project IDs: " + projectIDs.mkString(", "))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user