diff options
Diffstat (limited to 'tvix/eval/src/errors.rs')
-rw-r--r-- | tvix/eval/src/errors.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs index 1776cef88b00..b3b45c6cee3d 100644 --- a/tvix/eval/src/errors.rs +++ b/tvix/eval/src/errors.rs @@ -291,7 +291,6 @@ to a missing value in the attribute set(s) included via `with`."#, ErrorKind::InfiniteRecursion => "E014", ErrorKind::ParseErrors(_) => "E015", ErrorKind::DuplicateAttrsKey { .. } => "E016", - ErrorKind::ThunkForce(_) => "E017", ErrorKind::NotCoercibleToString { .. } => "E018", ErrorKind::IndexOutOfBounds { .. } => "E019", ErrorKind::NotAnAbsolutePath(_) => "E020", @@ -301,6 +300,13 @@ to a missing value in the attribute set(s) included via `with`."#, ErrorKind::UnmergeableInherit { .. } => "E024", ErrorKind::UnmergeableValue => "E025", ErrorKind::NotImplemented(_) => "E999", + + // TODO: thunk force errors should yield a chained + // diagnostic, but until then we just forward the error + // code from the inner error. + // + // The error code for thunk forces is E017. + ErrorKind::ThunkForce(ref err) => err.code(), } } |