Skip to content

Incorrect restify error messages #29

@mountaindude

Description

@mountaindude

When trying to duplicate an app that is a template, but the new owner does not have permissions to, the following error occurs.
Seems "BadRequestError" is no longer a valid way of returning an error when using Restify.

error: Duplication error 5: Received error code: 403::No permission to duplicate the app.
Unhandled rejection TypeError: restify.BadRequestError is not a constructor
at qrsInteractInstance.Post.then.catch.err (/nodeapp/index.js:666:30)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions