mirror of https://github.com/sbt/sbt.git
Add valid project IDs to 'No project <x> in <uri>' error message
This commit is contained in:
parent
3dd3a18996
commit
9d39b5d9e1
|
|
@ -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(", "))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue