]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/parse_conf.c
Fix junk in print of resource[rindex] + tweak the messages
[bacula/bacula] / bacula / src / lib / parse_conf.c
index c00a4e642e6e73c086eeb2e2c99e4149511fdce9..1da62d630630d85c88d7a93ccbd5328be0724260 100644 (file)
@@ -208,7 +208,7 @@ static void init_resource(CONFIG *config, int type, RES_ITEM *items, int pass)
       }
       /* If this triggers, take a look at lib/parse_conf.h */
       if (i >= MAX_RES_ITEMS) {
-         Emsg1(M_ERROR_TERM, 0, _("Too many items in %s resource\n"), resources[rindex]);
+         Emsg1(M_ERROR_TERM, 0, _("Too many directives in \"%s\" resource\n"), resources[rindex].name);
       }
    }
 }