diff --git a/source/dub/dub.d b/source/dub/dub.d index f27793a..8bcc557 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -389,7 +389,7 @@ if (versions.canFind!(v => dep.matches(v))) continue next_pack; } catch (Exception e) { - logDiagnostic("Error querying versions for %s, %s: %s", p, ps.description, e.msg); + logWarn("Error querying versions for %s, %s: %s", p, ps.description, e.msg); logDebug("Full error: %s", e.toString().sanitize()); } } @@ -671,7 +671,7 @@ supplier = ps; break; } catch(Exception e) { - logDiagnostic("Package %s not found for %s: %s", packageId, ps.description, e.msg); + logWarn("Package %s not found for %s: %s", packageId, ps.description, e.msg); logDebug("Full error: %s", e.toString().sanitize()); } } @@ -966,7 +966,7 @@ foreach (ps; this.m_packageSuppliers) { try versions ~= ps.getVersions(name); catch (Exception e) { - logDebug("Failed to get versions for package %s on provider %s: %s", name, ps.description, e.msg); + logWarn("Failed to get versions for package %s on provider %s: %s", name, ps.description, e.msg); } } return versions.sort().uniq.array; @@ -1264,7 +1264,7 @@ versions ~= vers; break; } catch (Exception e) { - logDebug("Package %s not found in %s: %s", pack, ps.description, e.msg); + logWarn("Package %s not found in %s: %s", pack, ps.description, e.msg); logDebug("Full error: %s", e.toString().sanitize); } } diff --git a/source/dub/packagesupplier.d b/source/dub/packagesupplier.d index 540e718..0e2da45 100644 --- a/source/dub/packagesupplier.d +++ b/source/dub/packagesupplier.d @@ -225,8 +225,10 @@ string data; try data = cast(string)download(url); - catch (Exception) + catch (Exception e) { + logWarn("Searching %s for '%s' failed: %s", m_registryUrl, query, e.msg); return null; + } import std.algorithm : map; return data.parseJson.opt!(Json[]) .map!(j => SearchResult(j["name"].opt!string, j["description"].opt!string, j["version"].opt!string))