Unverified Commit 09db4dc4 authored by Oleg Grenrus's avatar Oleg Grenrus Committed by GitHub
Browse files

Merge pull request #7078 from tomjaguarpaw/multiple

Slightly more information on multiple package error
parents 2a5f1e7a c07302ae
......@@ -551,8 +551,9 @@ resolveTargets selectPackageTargets selectComponentTarget
| otherwise
= Left (TargetProblemNoSuchPackage pkgid)
checkTarget (TargetPackage _ _ _)
= error "TODO: add support for multiple packages in a directory"
checkTarget (TargetPackage _ pkgids _)
= error ("TODO: add support for multiple packages in a directory. Got\n"
++ unlines (map prettyShow pkgids))
-- For the moment this error cannot happen here, because it gets
-- detected when the package config is being constructed. This case
-- will need handling properly when we do add support.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment