Skip to content

Return or throw error from plunk.emails.send() #6

Description

@jasongitmail

plunk.emails.send() currently returns the following:

Promise<{  success: true; }>

If an issue occurs, this provides no visibility into what the issue. It'd be more useful if 1.) an error object is also returned, or 2.) it throws an error upon failure (requires a breaking version change), so that the app can use a try/catch to catch and log this.

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