Skip to content

requiredError is inadequate #27

@arnab

Description

@arnab

When you specify required attributes:

const options = {
  required: {
    episodes: ["title", "pubDate"],
  },
};
const feedData = await podcastFeedParser.getPodcastFromURL(feedUrl, options);

... and the feed is missing some of the required fields:

Error: One or more required values are missing from feed.
    at Object.<anonymous> (/Users/arnab/code/projects/orcalabs/podcast-directory-management-tools/functions/node_modules/podcast-feed-parser/index.js:6:21)

It would be nice to get some more information from the error: such as which field specifically was missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions