chore: fix hasModule error message at parseTargetBaseSpec

This commit is contained in:
tydeu 2021-10-10 12:52:49 -04:00
parent b8b3f01c96
commit 1074aaa5fa

View file

@ -286,7 +286,7 @@ def parseTargetBaseSpec (rootPkg : Package) (spec : String) : CliM (Package × O
if pkg.hasModule mod then
return (pkg, mod)
else
error s!"'{modStr}' is not a local module of package '{pkgStr}'"
error s!"package '{pkgStr}' has no module '{modStr}'"
| _ =>
error s!"invalid target spec '{spec}' (too many '/')"