Merge pull request #131 from dwijnand/config-macro-msg

Improve config-creating macro error message
This commit is contained in:
Dale Wijnand 2017-07-17 16:12:04 +01:00 committed by GitHub
commit 53c80f076a
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ private[sbt] object ConfigurationMacro {
val enclosingValName = definingValName(
c,
methodName =>
s"""$methodName must be directly assigned to a val, such as `val x = $methodName`.""")
s"""$methodName must be directly assigned to a val, such as `val Tooling = $methodName("tooling")`.""")
val id = c.Expr[String](Literal(Constant(enclosingValName)))
reify { Configuration.of(id.splice, name.splice) }
}