From f8a068ee9e03be7e18410a4e91735e66f0322ab0 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 18 Jan 2018 15:42:32 +0000 Subject: [PATCH] Rename to be more explicit about the error --- services/web/app/coffee/Features/Errors/Errors.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/web/app/coffee/Features/Errors/Errors.coffee b/services/web/app/coffee/Features/Errors/Errors.coffee index f097730753..2797816a9c 100644 --- a/services/web/app/coffee/Features/Errors/Errors.coffee +++ b/services/web/app/coffee/Features/Errors/Errors.coffee @@ -33,12 +33,12 @@ UnsupportedFileTypeError = (message) -> return error UnsupportedFileTypeError.prototype.__proto___ = Error.prototype -UnsupportedProjectError = (message) -> +UnsupportedBrandError = (message) -> error = new Error(message) - error.name = "UnsupportedProjectError" - error.__proto__ = UnsupportedProjectError.prototype + error.name = "UnsupportedBrandError" + error.__proto__ = UnsupportedBrandError.prototype return error -UnsupportedProjectError.prototype.__proto___ = Error.prototype +UnsupportedBrandError.prototype.__proto___ = Error.prototype UnsupportedPublisherExportsError = (message) -> error = new Error(message) @@ -53,5 +53,5 @@ module.exports = Errors = TooManyRequestsError: TooManyRequestsError InvalidNameError: InvalidNameError UnsupportedFileTypeError: UnsupportedFileTypeError - UnsupportedProjectError: UnsupportedProjectError + UnsupportedBrandError: UnsupportedBrandError UnsupportedPublisherExportsError: UnsupportedPublisherExportsError