Skip to content

Change ApiError constructor to use "assign" syntax #113

Open

Description

@MacMcIrish

constructor(message, statusCode = 400, messageId = undefined, context = undefined)

Should be

constructor({ message, statusCode = 400, messageId = undefined, context = undefined })

So as to not have to specify statusCode to set messageId

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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