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

@ -860,7 +860,7 @@ part = rectShape([0, 0], 20, 20)
};
assert_eq!(
err.error.message(),
"This function expected this argument to be of type SketchOrSurface but it's actually of type string (text)"
"This function expected the input argument to be of type SketchOrSurface but it's actually of type string (text)"
);
}
@ -2106,7 +2106,7 @@ async fn kcl_test_better_type_names() {
},
None => todo!(),
};
assert_eq!(err, "This function expected this argument to be of type SolidSet but it's actually of type Sketch. You can convert a sketch (2D) into a Solid (3D) by calling a function like `extrude` or `revolve`");
assert_eq!(err, "This function expected the input argument to be of type SolidSet but it's actually of type Sketch. You can convert a sketch (2D) into a Solid (3D) by calling a function like `extrude` or `revolve`");
}
#[tokio::test(flavor = "multi_thread")]