mirror of https://github.com/sbt/sbt.git
Merge pull request #131 from dwijnand/config-macro-msg
Improve config-creating macro error message
This commit is contained in:
commit
53c80f076a
|
|
@ -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) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue