diff --git a/project/ParadoxSupport.scala b/project/ParadoxSupport.scala index b3fdd21318..d941d6617b 100644 --- a/project/ParadoxSupport.scala +++ b/project/ParadoxSupport.scala @@ -31,13 +31,13 @@ object ParadoxSupport { val allClasses = scanner.getAllClasses.getNames.asScala.toVector Def.task { Seq( { context: Writer.Context => - new SignatureDirective(context.location.tree.label, context.properties, msg => log.warn(msg)) + new SignatureDirective(context.location.tree.label, context.properties, context) }, )} }.value ) - class SignatureDirective(page: Page, variables: Map[String, String], logWarn: String => Unit) extends LeafBlockDirective("signature") { + class SignatureDirective(page: Page, variables: Map[String, String], ctx: Writer.Context) extends LeafBlockDirective("signature") { def render(node: DirectiveNode, visitor: Visitor, printer: Printer): Unit = try { val labels = node.attributes.values("identifier").asScala.map(_.toLowerCase()) @@ -72,7 +72,7 @@ object ParadoxSupport { } } catch { case e: FileNotFoundException => - throw new SnipDirective.LinkException(s"Unknown snippet [${e.getMessage}] referenced from [${page.path}]") + ctx.error(s"Unknown snippet [${e.getMessage}]", node) } } diff --git a/project/plugins.sbt b/project/plugins.sbt index 160b9d4fea..ee372c9a9b 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -17,7 +17,7 @@ addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1") addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.2") addSbtPlugin("com.lightbend.akka" % "sbt-paradox-akka" % "0.23") addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-apidoc" % "0.2") -addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.6.4") +addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.6.5") addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.16") addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0") addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.2.0") // for maintenance of copyright file header