mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Rename to be more explicit about the error
This commit is contained in:
parent
649ca86a75
commit
f8a068ee9e
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue