From 649ca86a75530375bf205b168eb2d899cf5c913d Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 18 Jan 2018 15:41:14 +0000 Subject: [PATCH] Add publisher exports error type --- services/web/app/coffee/Features/Errors/Errors.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/web/app/coffee/Features/Errors/Errors.coffee b/services/web/app/coffee/Features/Errors/Errors.coffee index d883afd1d7..f097730753 100644 --- a/services/web/app/coffee/Features/Errors/Errors.coffee +++ b/services/web/app/coffee/Features/Errors/Errors.coffee @@ -40,6 +40,13 @@ UnsupportedProjectError = (message) -> return error UnsupportedProjectError.prototype.__proto___ = Error.prototype +UnsupportedPublisherExportsError = (message) -> + error = new Error(message) + error.name = "UnsupportedPublisherExportsError" + error.__proto__ = UnsupportedPublisherExportsError.prototype + return error +UnsupportedPublisherExportsError.prototype.__proto___ = Error.prototype + module.exports = Errors = NotFoundError: NotFoundError ServiceNotConfiguredError: ServiceNotConfiguredError @@ -47,3 +54,4 @@ module.exports = Errors = InvalidNameError: InvalidNameError UnsupportedFileTypeError: UnsupportedFileTypeError UnsupportedProjectError: UnsupportedProjectError + UnsupportedPublisherExportsError: UnsupportedPublisherExportsError