Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

handle errors for addons code inside netlify dev #11

@swyxio

Description

@swyxio

when i run netlify dev on an existing project i get this:

netlify dev
TypeError: addons.forEach is not a function
    at DevCommand.run (~/Netlify/netlify-dev-plugin/src/commands/dev/index.js:123:14)

this is because the value of addons at that point is
{ code: 404, message: 'Not Found' }. it isnt an array.

Regadless of whether the addons endpoint is always functional or not, we should have better error handling here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions