[plist] Put quotes around the unknown field name

I got rather confused by "unknown field type" when "type" was the field
name.
This commit is contained in:
Bill Currie 2023-06-16 18:47:24 +09:00
parent 387051fedf
commit 57da924c1b
2 changed files with 2 additions and 2 deletions

View file

@ -1433,7 +1433,7 @@ PL_ParseStruct (const plfield_t *fields, const plitem_t *item, void *data,
}
}
if (!f->name) {
PL_Message (messages, item, "error: unknown field %s",
PL_Message (messages, item, "error: unknown field '%s'",
current->key);
result = 0;
}

View file

@ -161,7 +161,7 @@ find_field (plfield_t *fields, const char *field_name,
return f;
}
}
PL_Message (messages, item, "error: unknown field %s", field_name);
PL_Message (messages, item, "error: unknown field '%s'", field_name);
return 0;
}