Skip to content
Permalink
Browse files

Output a proper error message when trying to build a "sourceLibrary".

  • Loading branch information...
s-ludwig committed Oct 21, 2013
1 parent b08454b commit 1201e4cdb127481146e6101e941231d04e054810
Showing with 1 addition and 0 deletions.
  1. +1 −0 source/dub/project.d
@@ -388,6 +388,7 @@ class Project {
}
if (pkg is m_main) {
enforce(psettings.targetType != TargetType.none, "Main package has target type \"none\" - stopping build.");
enforce(psettings.targetType != TargetType.sourceLibrary, "Main package has target type \"sourceLibrary\" which generates no target - stopping build.");
dst.targetType = psettings.targetType;
dst.targetPath = psettings.targetPath;
dst.targetName = psettings.targetName;

0 comments on commit 1201e4c

Please sign in to comment.
You can’t perform that action at this time.