Skip to content

Commit de00f48

Browse files
committed
Better error messages
1 parent 1895a18 commit de00f48

File tree

1 file changed

+1
-1
lines changed
  • convex-core/src/main/java/convex/core/lang

1 file changed

+1
-1
lines changed

convex-core/src/main/java/convex/core/lang/RT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ public static ACell assocIn(ACell a, ACell value, Object... keys) {
14121412
ACell data=a;
14131413
for (int i = 0; i < n; i++) {
14141414
ADataStructure<?> struct = RT.ensureAssociative(data); // nil-> empty map
1415-
if (struct == null) throw new IllegalArgumentException("Not a data structure at depth: "+i);
1415+
if (struct == null) throw new IllegalArgumentException("Not a data structure at depth: "+i+" found "+Utils.getClassName(data));
14161416
ass[i]=struct;
14171417
ACell k=RT.cvm(keys[i]);
14181418
ks[i]=k;

0 commit comments

Comments
 (0)