schema MAINTENANCE clarify error message text
diff --git a/src/path.c b/src/path.c
index a64e668..6f867f3 100644
--- a/src/path.c
+++ b/src/path.c
@@ -400,7 +400,8 @@
if (pref) {
*mod = ly_resolve_prefix(ctx, pref, len, format, prefix_data);
if (!*mod) {
- LOGVAL_P(ctx, cur_node, LYVE_XPATH, "Prefix \"%.*s\" not found of a module in path.", len, pref);
+ LOGVAL_P(ctx, cur_node, LYVE_XPATH, "No module connected with the prefix \"%.*s\" found (prefix format %d).",
+ len, pref, format);
return LY_EVALID;
} else if (!(*mod)->implemented) {
if (lref == LY_PATH_LREF_FALSE) {
diff --git a/tests/utests/schema/test_tree_schema_compile.c b/tests/utests/schema/test_tree_schema_compile.c
index 091ae9b..468a68d 100644
--- a/tests/utests/schema/test_tree_schema_compile.c
+++ b/tests/utests/schema/test_tree_schema_compile.c
@@ -1789,7 +1789,7 @@
logbuf_assert("Too many parent references in path. /bb:ref1");
assert_int_equal(LY_EVALID, lys_parse_mem(ctx, "module cc {namespace urn:cc;prefix cc;container a {leaf target2 {type uint8;}}"
"leaf ref1 {type leafref {path /a:invalid;}}}", LYS_IN_YANG, &mod));
- logbuf_assert("Prefix \"a\" not found of a module in path. /cc:ref1");
+ logbuf_assert("No module connected with the prefix \"a\" found (prefix format 1). /cc:ref1");
assert_int_equal(LY_EVALID, lys_parse_mem(ctx, "module dd {namespace urn:dd;prefix dd;leaf target1 {type string;}"
"container a {leaf target2 {type uint8;}} leaf ref1 {type leafref {"
"path '/a[target2 = current()/../target1]/target2';}}}", LYS_IN_YANG, &mod));
@@ -1842,7 +1842,7 @@
"leaf ifname{type leafref{ path \"../interface/name\";}}"
"leaf address {type leafref{ path \"/interface[x:name=current()/../ifname]/ip\";}}}",
LYS_IN_YANG, &mod));
- logbuf_assert("Prefix \"x\" not found of a module in path. /pp:address");
+ logbuf_assert("No module connected with the prefix \"x\" found (prefix format 1). /pp:address");
assert_int_equal(LY_EVALID, lys_parse_mem(ctx, "module qq {namespace urn:qq;prefix qq;"
"list interface{key name;leaf name{type string;}leaf ip {type string;}}"
@@ -1905,7 +1905,7 @@
"leaf ifname{type leafref{ path \"../interface/name\";}}"
"leaf address {type leafref{ path \"/interface[name=current()/../x:ifname]/ip\";}}}",
LYS_IN_YANG, &mod));
- logbuf_assert("Prefix \"x\" not found of a module in path. /yy:address");
+ logbuf_assert("No module connected with the prefix \"x\" found (prefix format 1). /yy:address");
assert_int_equal(LY_EVALID, lys_parse_mem(ctx, "module zz {namespace urn:zz;prefix zz;"
"list interface{key name;leaf name{type string;}leaf ip {type string;}}"