Make the error reporting better for invalid fields

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>