Add more descriptive message to context exceptions.

This commit is contained in:
Danila Fedorin 2017-09-23 15:43:07 -07:00
parent 31996219ad
commit ea4588be44
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -
currentRef = currentRef.parent ?: break
returnedValue = currentRef.valueGetter()
}
return returnedValue ?: throw ContextException()
return returnedValue ?: throw ContextException("context chain does not contain value")
}
}