diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-02T20·47+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-08T13·36+0000 |
commit | 60ff8d046c01c7a820e56d584bf9fcabacc417b7 (patch) | |
tree | f6236e9aef54c76961986fc5fae4f2327341a32e /tvix | |
parent | b83723a1edef90e4020b9b9af6c905d2badbedea (diff) |
chore(tvix/eval): print value when panicking on internals r/4751
This makes it much easier to figure out what happened while debugging this sort of thing. Change-Id: I2e0e8096709adc647d63c04f213c547c415e5f44 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6418 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/eval/src/vm.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index fecaae37aa5b..259fbf7d11f8 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -673,7 +673,9 @@ impl VM { | Value::AttrNotFound | Value::DynamicUpvalueMissing(_) | Value::Blueprint(_) - | Value::DeferredUpvalue(_) => panic!("tvix bug: internal value left on stack"), + | Value::DeferredUpvalue(_) => { + panic!("tvix bug: internal value left on stack: {:?}", value) + } _ => Ok(()), } |