diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/builtins/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index eaa1d1f98d5d..2f317dbf9d9f 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -1122,8 +1122,9 @@ mod pure_builtins { #[builtin("throw")] async fn builtin_throw(co: GenCo, message: Value) -> Result<Value, ErrorKind> { // TODO(sterni): coerces to string + // We do not care about the context here explicitly. Ok(Value::Catchable(CatchableErrorKind::Throw( - message.to_str()?.to_string(), + message.to_contextful_str()?.to_string(), ))) } |