- vec_upload(error, "invalid section `", 17);
- vec_upload(error, section, strlen(section));
- vec_push (error, '`');
- vec_push (error, '\0');
+ static const char *invalid_section = "invalid_section `";
+ vec_append(error, strlen(invalid_section), invalid_section);
+ vec_append(error, strlen(section), section);
+ vec_push(error, '`');
+ } else if (strcmp(section, "includes")) {
+ static const char *invalid_variable = "invalid_variable `";
+ static const char *in_section = "` in section: `";
+ vec_append(error, strlen(invalid_variable), invalid_variable);
+ vec_append(error, strlen(name), name);
+ vec_append(error, strlen(in_section), in_section);
+ vec_append(error, strlen(section), section);
+ vec_push(error, '`');