if (i >= 0) {
Dmsg2(150, "level=%d id=%s\n", level, lc->str);
Dmsg1(150, "Keyword = %s\n", lc->str);
- scan_err1(lc, "Keyword %s not permitted in this resource", lc->str);
+ scan_err1(lc, "Keyword \"%s\" not permitted in this resource", lc->str);
/* NOT REACHED */
}
break;
/* NOT REACHED */
}
}
+ if (state != p_none) {
+ scan_err0(lc, "End of conf file reached with unclosed resource.");
+ }
if (debug_level > 50 && pass == 2) {
int i;
for (i=r_first; i<=r_last; i++) {