mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 04:06:39 -05:00
Change error type for consistency
This commit is contained in:
parent
6198491e5f
commit
5c62ac4f8a
1 changed files with 5 additions and 5 deletions
|
@ -26,16 +26,16 @@ InvalidNameError = (message) ->
|
||||||
return error
|
return error
|
||||||
InvalidNameError.prototype.__proto__ = Error.prototype
|
InvalidNameError.prototype.__proto__ = Error.prototype
|
||||||
|
|
||||||
UnsupportedFileType = (message) ->
|
UnsupportedFileTypeError = (message) ->
|
||||||
error = new Error(message)
|
error = new Error(message)
|
||||||
error.name = "UnsupportedFileType"
|
error.name = "UnsupportedFileTypeError"
|
||||||
error.__proto__ = UnsupportedFileType.prototype
|
error.__proto__ = UnsupportedFileTypeError.prototype
|
||||||
return error
|
return error
|
||||||
UnsupportedFileType.prototype.__proto___ = Error.prototype
|
UnsupportedFileTypeError.prototype.__proto___ = Error.prototype
|
||||||
|
|
||||||
module.exports = Errors =
|
module.exports = Errors =
|
||||||
NotFoundError: NotFoundError
|
NotFoundError: NotFoundError
|
||||||
ServiceNotConfiguredError: ServiceNotConfiguredError
|
ServiceNotConfiguredError: ServiceNotConfiguredError
|
||||||
TooManyRequestsError: TooManyRequestsError
|
TooManyRequestsError: TooManyRequestsError
|
||||||
InvalidNameError: InvalidNameError
|
InvalidNameError: InvalidNameError
|
||||||
UnsupportedFileType: UnsupportedFileType
|
UnsupportedFileTypeError: UnsupportedFileTypeError
|
||||||
|
|
Loading…
Reference in a new issue