diff --git a/source/app.d b/source/app.d index e5d7c47..b159601 100644 --- a/source/app.d +++ b/source/app.d @@ -229,11 +229,11 @@ if( settings.copyFiles.length ){ logInfo("Copying files..."); foreach( f; settings.copyFiles ){ - logInfo("Blah", f); auto src = Path(f); auto dst = (run_exe_file.empty ? dub.binaryPath : run_exe_file.parentPath) ~ Path(f).head; logDebug(" %s to %s", src.toNativeString(), dst.toNativeString()); - copyFile(src, dst, true); + try copyFile(src, dst, true); + catch logWarn("Failed to copy to %s", dst.toNativeString()); } } 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; }