Add unsupported project error

This commit is contained in:
Alasdair Smith 2018-01-17 17:50:09 +00:00
parent cd4d27c587
commit 950ef0cebb

View file

@ -33,6 +33,13 @@ UnsupportedFileTypeError = (message) ->
return error return error
UnsupportedFileTypeError.prototype.__proto___ = Error.prototype UnsupportedFileTypeError.prototype.__proto___ = Error.prototype
UnsupportedProjectError = (message) ->
error = new Error(message)
error.name = "UnsupportedProjectError"
error.__proto__ = UnsupportedProjectError.prototype
return error
UnsupportedProjectError.prototype.__proto___ = Error.prototype
module.exports = Errors = module.exports = Errors =
NotFoundError: NotFoundError NotFoundError: NotFoundError
ServiceNotConfiguredError: ServiceNotConfiguredError ServiceNotConfiguredError: ServiceNotConfiguredError