diff --git a/source/dub/dub.d b/source/dub/dub.d index 031f9c7..1360623 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -895,7 +895,7 @@ m_remotePackages[key] = null; - logWarn("Package %s %s was found neither locally, nor in the configured package registries.", name, dep); + logWarn("Package %s %s could not be loaded either locally, or from the configured package registries.", name, dep); return null; } } diff --git a/source/dub/package_.d b/source/dub/package_.d index fbc612a..13bf7fc 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -111,7 +111,10 @@ // parse the JSON description { - scope(failure) logError("Failed to parse package description in %s", root.toNativeString()); + scope(failure) logError("Failed to parse package description for %s %s in %s.", + packageInfo.name.get!string, versionOverride.length ? versionOverride : packageInfo["version"].opt!string, + root.length ? root.toNativeString() : "remote location"); + m_info.parseJson(packageInfo, parent ? parent.name : null); if (!versionOverride.empty)