An attempt to set or unset a non-existing attribute currently results in
key not found in rbtree
which is a bit cryptic. This commit adds another message that clarifies
what went wrong.
break;
p[len - 1] = '\0';
ret = get_attribute_bitnum_by_name(p, &bitnum);
break;
p[len - 1] = '\0';
ret = get_attribute_bitnum_by_name(p, &bitnum);
+ if (ret < 0) {
+ para_printf(&cad.pb, "attribute not found: %s\n", p);
if (c == '+')
cad.add_mask |= (1UL << bitnum);
else
if (c == '+')
cad.add_mask |= (1UL << bitnum);
else