Tweak error output for failed data reification.

This commit is contained in:
KtorZ
2024-09-19 20:10:28 +02:00
parent 43182721f5
commit 91843b2c0e

View File

@@ -1211,7 +1211,8 @@ impl UntypedExpr {
}
Err(format!(
"invalid type annotation {tipo:?} for constructor: {tag:?} with {fields:?}"
"invalid type annotation {tipo:?} for {ix}{} constructor with fields: {fields:?}",
ordinal::Ordinal::<usize>(ix + 1).suffix(),
))
}