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:
parent
2023b8e33f
commit
b8f36ba097
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue