Skip to content

Commit

Permalink
Merge pull request #1373 from ucb-bar/misc
Browse files Browse the repository at this point in the history
Update assert message if configs can't be split by `:`
  • Loading branch information
abejgonzalez authored Mar 1, 2023
2 parents 0069b6d + 1357ea4 commit 534618f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private[stage] object UnderscoreDelimitedConfigsAnnotation extends HasShellOptio
longOption = "legacy-configs",
toAnnotationSeq = a => {
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 configs = split.last.split("_")
Seq(new ConfigsAnnotation(configs map { config => if (config contains ".") s"${config}" else s"${packageName}.${config}" } ))
Expand Down

0 comments on commit 534618f

Please sign in to comment.