Update assert message
This commit is contained in:
@@ -13,7 +13,7 @@ private[stage] object UnderscoreDelimitedConfigsAnnotation extends HasShellOptio
|
|||||||
longOption = "legacy-configs",
|
longOption = "legacy-configs",
|
||||||
toAnnotationSeq = a => {
|
toAnnotationSeq = a => {
|
||||||
val split = a.split(':')
|
val split = a.split(':')
|
||||||
assert(split.length == 2)
|
assert(split.length == 2, s"'${a}' split by ':' doesn't yield two things")
|
||||||
val packageName = split.head
|
val packageName = split.head
|
||||||
val configs = split.last.split("_")
|
val configs = split.last.split("_")
|
||||||
Seq(new ConfigsAnnotation(configs map { config => if (config contains ".") s"${config}" else s"${packageName}.${config}" } ))
|
Seq(new ConfigsAnnotation(configs map { config => if (config contains ".") s"${config}" else s"${packageName}.${config}" } ))
|
||||||
|
|||||||
Reference in New Issue
Block a user