diff --git a/source/dub/dub.d b/source/dub/dub.d index 441a230..b2d8859 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -150,8 +150,8 @@ try m_json = jsonFromFile(m_root ~ ".dub/dub.json", true); catch(Exception t) logDebug("Failed to read .dub/dub.json: %s", t.msg); - if( !exists(to!string(m_root~PackageJsonFilename)) ){ - logWarn("There was no '"~PackageJsonFilename~"' found for the application in '%s'.", m_root); + if( !existsFile(m_root~PackageJsonFilename) ){ + logWarn("There was no '"~PackageJsonFilename~"' found for the application in '%s'.", m_root.toNativeString()); return; }