aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stage2/BuildBuild.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala
index 45d86f8..813b44b 100644
--- a/stage2/BuildBuild.scala
+++ b/stage2/BuildBuild.scala
@@ -17,6 +17,8 @@ class BuildBuild(context: Context) extends Build(context){
.newInstance(managedContext)
.asInstanceOf[Build]
} catch {
+ case e: ClassNotFoundException if e.getMessage == lib.buildClassName =>
+ throw new Exception("You need to remove the directory or define a class Build in: "+context.cwd)
case e: Exception =>
throw new Exception("during build: "+context.cwd, e)
}