mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 19:34:12 +01:00
.ai import: the nested-arrays refusal uses the translated nesting message
This commit is contained in:
1 parent
e3ef19142f
commit
9d3c45a7b5
1 file changed
+1
-1
@@ -88,7 +88,7 @@ impl<'a> Reader<'a> {
|
||||
}
|
||||
// Arrays nest as deep as their `[`s; dropping a deeper one would overflow the stack.
|
||||
if self.marks.len() >= MAX_DEPTH {
|
||||
return Err("it has arrays nested too deeply".into());
|
||||
return Err("its objects are nested too deeply".into());
|
||||
}
|
||||
self.marks.push(self.stack.len());
|
||||
return self.push(V::Mark);
|
||||
|
||||
Reference in new issue
Block a user