Cells: the blocks refusal names its problem as a schema Problem

develop did not build: #277's new refusal in mesh.cells passed text to
EngineError::param, which #276 changed to take a ProblemKind.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-14 22:45:24 -04:00
1 parent 65fb1112ab
commit 0bbdd463ea
1 file changed
+4 -1
+4 -1
View File
@@ -77,7 +77,10 @@ enum Meshed<'a> {
fn cells(s: &mut Session, p: &Value) -> Result<Value> {
if p.get("default").and_then(Value::as_str) == Some("blocks") {
if p.get("methods").is_some_and(|m| m.as_object().is_none_or(|o| !o.is_empty())) {
return Err(EngineError::param("methods", "must be empty with \"default\": \"blocks\" (every cell a block)"));
return Err(EngineError::param(
"methods",
crate::schema::ProblemKind::Invalid("must be empty with \"default\": \"blocks\" (every cell a block)".into()),
));
}
return super::hex::hex_blocks(s, p);
}