Add warning when using a module with no return value (#5771)

* Add warning when using a module with no return value

* Update output files since changing source range of the pipeline argument

* Change wording of error message to not use the term unlabeled
This commit is contained in:
Jonathan Tran
2025-03-12 14:05:18 -04:00
committed by GitHub
parent d8dff03746
commit e894242768
73 changed files with 601 additions and 594 deletions

View File

@ -659,7 +659,11 @@ impl KclValue {
args,
source_range,
ctx.clone(),
exec_state.mod_local.pipe_value.clone().map(Arg::synthetic),
exec_state
.mod_local
.pipe_value
.clone()
.map(|v| Arg::new(v, source_range)),
);
let result = func(exec_state, args).await.map(Some);
exec_state.mut_stack().pop_env();