Skip to content

Commit

Permalink
better error message if no main class was specified or detected
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Sep 5, 2015
1 parent 62466e1 commit 1e452c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/spray/revolver/Actions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ object Actions {
assert(!revolverState.getProcess(project).exists(_.isRunning))

// fail early
val theMainClass = mainClass.get
val theMainClass = mainClass.getOrElse(sys.error("No main class detected!"))
val color = updateStateAndGet(_.takeColor)
val logger = new SysoutLogger(logTag, color, streams.log.ansiCodesSupported)
colorLogger(streams.log).info("[YELLOW]Starting application %s in the background ..." format formatAppName(project.project, color))
Expand Down

0 comments on commit 1e452c5

Please sign in to comment.