chore(tvix/eval): print slightly more information about warnings

This is just for dev comfort, it's not going to be useful for the
final version.

Change-Id: I05fdd590097a61085ed641810655d9ddaf8f3511
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6265
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-08-24 20:17:55 +03:00 committed by tazjin
parent 2023b8e33f
commit b8f36ba097

View file

@ -36,8 +36,9 @@ pub fn interpret(code: &str, location: Option<PathBuf>) -> EvalResult<Value> {
for warning in result.warnings {
eprintln!(
"warning: {:?} at {:?}",
"warning: {:?} at `{:?}`[{:?}]",
warning.kind,
warning.node.text(),
warning.node.text_range().start()
)
}