mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add publisher exports error type
This commit is contained in:
parent
f234e84c95
commit
649ca86a75
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue