diff --git a/source/dub/dub.d b/source/dub/dub.d index 6b9ff23..20eb446 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -185,7 +185,7 @@ break; } catch(Exception) {} } - enforce(pinfo.type != Json.Type.Null, "No package "~packageId~" was found matching the dependency "~dep.toString()); + enforce(pinfo.type != Json.Type.Undefined, "No package "~packageId~" was found matching the dependency "~dep.toString()); string ver = pinfo["version"].get!string; if( auto pack = m_packageManager.getPackage(packageId, ver, location) ){