Skip to content

Commit 6e403cb

Browse files
author
reidspencer
committed
Better checking in laminext support
1 parent 66fbf9c commit 6e403cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/scala/com/ossuminc/sbt/helpers/Laminar.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ object Laminar extends AutoPluginHelper {
2323
val org = v_laminext match {
2424
case s: String if s.startsWith("0.") =>
2525
val strs = s.split(".")
26+
require(strs.length > 2, "Invalid 3 part laminex version")
2627
val minor = strs(1).toInt
2728
if (minor < 17) "io.laminext"
2829
else if (minor >= 18) "dev.laminext"
@@ -41,6 +42,8 @@ object Laminar extends AutoPluginHelper {
4142
case "ui" => org %%% "ui" % v_laminext
4243
case "validation" => org %%% "validation" % v_laminext
4344
case "util" => org %%% "util" % v_laminext
45+
case s: String =>
46+
throw new IllegalArgumentException(s"Unsupported laminar module $s")
4447
}
4548
}
4649
Seq(

0 commit comments

Comments
 (0)