schema compile UPDATE improved cyclic when message
diff --git a/src/schema_compile.c b/src/schema_compile.c
index ea1d403..d7d59f7 100644
--- a/src/schema_compile.c
+++ b/src/schema_compile.c
@@ -753,7 +753,8 @@
                         uint32_t idx;
                         if (lyxp_set_scnode_contains(set, tmp_set.val.scnodes[j].scnode, LYXP_NODE_ELEM, -1, &idx) &&
                                 (set->val.scnodes[idx].in_ctx == LYXP_SET_SCNODE_START_USED)) {
-                            LOGVAL(set->ctx, LYVE_SEMANTICS, "When condition includes a self-reference.");
+                            LOGVAL(set->ctx, LYVE_SEMANTICS, "When condition cyclic dependency on the node \"%s\".",
+                                    tmp_set.val.scnodes[j].scnode->name);
                             ret = LY_EVALID;
                             goto cleanup;
                         }