diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 6571982..e30cced 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -342,7 +342,7 @@ logInfo("Deprecated use of init type. Use --type=[vibe.d | deimos | minimal] in future."); } } - dub.createEmptyPackage(Path(dir), free_args, m_buildType); + dub.createEmptyPackage(Path(dir), free_args, m_buildType); return 0; } } diff --git a/source/dub/dub.d b/source/dub/dub.d index a06888f..7dfb453 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -622,12 +622,10 @@ } } if(notFound.length > 1){ - logError("Couldnt find packages: %-(%s, %). Exiting...", notFound); - return; + throw new Exception(format("Couldn't find packages: %-(%s, %).", notFound)); } else if(notFound.length == 1){ - logError("Couldnt find package: %-(%s, %). Exiting...", notFound); - return; + throw new Exception(format("Couldn't find package: %-(%s, %).", notFound)); } initPackage(path, depVers, type);