diff --git a/source/dub/package_.d b/source/dub/package_.d index 055a937..be1a467 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -139,9 +139,11 @@ m_subPackages ~= new Package(p, root, this); // load all sub packages defined by stand-alone package.json files - foreach (de; dirEntries(path.toNativeString(), "package.json", SpanMode.depth)) { - auto spath = Path(de.name).parentPath; - if (spath != path) m_subPackages ~= new Package(spath, this); + if (existsFile(path)) { + foreach (de; dirEntries(path.toNativeString(), "package.json", SpanMode.depth)) { + auto spath = Path(de.name).parentPath; + if (spath != path) m_subPackages ~= new Package(spath, this); + } } } diff --git a/source/dub/project.d b/source/dub/project.d index 0c89793..0835652 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -470,7 +470,7 @@ p = new Package(ps.getPackageDescription(pkg, reqDep.dependency)); break; } catch(Exception e) { - logDebug("No metadata for %s: %s", typeid(ps).name, e.msg); + logDebug("No metadata for %s: %s", ps.classinfo.name, e.msg); } } enforce(p !is null, "Could not find package candidate for "~pkg~" "~reqDep.dependency.toString());