mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-28 17:45:19 +00:00
Add more descriptive message to context exceptions.
This commit is contained in:
@@ -24,7 +24,7 @@ class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -
|
|||||||
currentRef = currentRef.parent ?: break
|
currentRef = currentRef.parent ?: break
|
||||||
returnedValue = currentRef.valueGetter()
|
returnedValue = currentRef.valueGetter()
|
||||||
}
|
}
|
||||||
return returnedValue ?: throw ContextException()
|
return returnedValue ?: throw ContextException("context chain does not contain value")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user