mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 09:43:14 +00:00
Merge pull request #196 from sharelatex/as-clean-up-failed-import
Add unsupported file type error
This commit is contained in:
commit
60b00d2b94
1 changed files with 8 additions and 0 deletions
|
@ -26,8 +26,16 @@ InvalidNameError = (message) ->
|
|||
return error
|
||||
InvalidNameError.prototype.__proto__ = Error.prototype
|
||||
|
||||
UnsupportedFileTypeError = (message) ->
|
||||
error = new Error(message)
|
||||
error.name = "UnsupportedFileTypeError"
|
||||
error.__proto__ = UnsupportedFileTypeError.prototype
|
||||
return error
|
||||
UnsupportedFileTypeError.prototype.__proto___ = Error.prototype
|
||||
|
||||
module.exports = Errors =
|
||||
NotFoundError: NotFoundError
|
||||
ServiceNotConfiguredError: ServiceNotConfiguredError
|
||||
TooManyRequestsError: TooManyRequestsError
|
||||
InvalidNameError: InvalidNameError
|
||||
UnsupportedFileTypeError: UnsupportedFileTypeError
|
||||
|
|
Loading…
Add table
Reference in a new issue