diff --git a/source/dub/package_.d b/source/dub/package_.d index 9ae5362..1f3c15b 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -88,7 +88,10 @@ try { if(m_infoFile.empty) { m_infoFile = findPackageFile(root); - if(m_infoFile.empty) throw new Exception("no package file was found, expected one of the following: "~to!string(packageInfoFiles)); + if(m_infoFile.empty) + throw new Exception( + "No package file found in %s, expected one of %s" + .format(root.toNativeString(), packageInfoFiles.map!(f => f.filename).join("/"))); } raw_package = rawPackageFromFile(m_infoFile); } catch (Exception ex) throw ex;//throw new Exception(format("Failed to load package %s: %s", m_infoFile.toNativeString(), ex.msg));