aboutsummaryrefslogtreecommitdiff
path: root/stage2/BuildBuild.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-04-03 23:39:36 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-04-03 23:39:36 -0400
commit8ed9a0a1c0c0b7175ed4693d9b6949f866802c4c (patch)
treefd919ee55c08852040e7bf0658b435eb37d1b557 /stage2/BuildBuild.scala
parent83d6e39764103bde44d5812aa873ed7537cc8c97 (diff)
downloadcbt-8ed9a0a1c0c0b7175ed4693d9b6949f866802c4c.tar.gz
cbt-8ed9a0a1c0c0b7175ed4693d9b6949f866802c4c.tar.bz2
cbt-8ed9a0a1c0c0b7175ed4693d9b6949f866802c4c.zip
Better error message when build folder does not contain Build class
Diffstat (limited to 'stage2/BuildBuild.scala')
-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)
}