Add a meaningful error message when malformed
metadata field is provided.