Skip to content

Commit 84ad67b

Browse files
committed
server messages CHANGE libyang error removed
Fixes #24
1 parent 536d4f6 commit 84ad67b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/messages_server.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ nc_err_libyang(void)
468468
break;
469469
case LYVE_INATTR:
470470
case LYVE_MISSATTR:
471-
case LYVE_INVALATTR:
472471
str = ly_errmsg();
473472
stri = strchr(str, '"');
474473
stri++;
@@ -477,10 +476,8 @@ nc_err_libyang(void)
477476
attr = strndup(stri, strj - stri);
478477
if (ly_vecode == LYVE_INATTR) {
479478
e = nc_err(NC_ERR_UNKNOWN_ATTR, NC_ERR_TYPE_PROT, attr, ly_errpath());
480-
} else if (ly_vecode == LYVE_MISSATTR) {
479+
} else {
481480
e = nc_err(NC_ERR_MISSING_ATTR, NC_ERR_TYPE_PROT, attr, ly_errpath());
482-
} else { /* LYVE_INVALATTR */
483-
e = nc_err(NC_ERR_BAD_ATTR, NC_ERR_TYPE_PROT, attr, ly_errpath());
484481
}
485482
free(attr);
486483
break;

0 commit comments

Comments
 (0)