Add publisher exports error type

This commit is contained in:
Alasdair Smith 2018-01-18 15:41:14 +00:00
parent f234e84c95
commit 649ca86a75

View file

@ -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