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:
@ -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();
|
||||
|
Reference in New Issue
Block a user