mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #34992 from overleaf/em-dropbox-rate-limits
[third-party-datastore] Handle Dropbox rate limits and per-project file-count limits during sync GitOrigin-RevId: 0a3c4a06b6444a70394c35cb404c566ef7e25cef
This commit is contained in:
@@ -19,6 +19,7 @@ import LinkedFilesErrors from './LinkedFilesErrors.mjs'
|
||||
import {
|
||||
OutputFileFetchFailedError,
|
||||
FileTooLargeError,
|
||||
TooManyFilesError,
|
||||
} from '../Errors/Errors.js'
|
||||
import Modules from '../../infrastructure/Modules.mjs'
|
||||
import { plainTextResponse } from '../../infrastructure/Response.mjs'
|
||||
@@ -257,7 +258,7 @@ export default LinkedFilesController = {
|
||||
} else if (error instanceof FileCannotRefreshError) {
|
||||
res.status(400)
|
||||
plainTextResponse(res, 'This file cannot be refreshed')
|
||||
} else if (error.message === 'project_has_too_many_files') {
|
||||
} else if (error instanceof TooManyFilesError) {
|
||||
res.status(400)
|
||||
plainTextResponse(res, 'too many files')
|
||||
} else if (/\bECONNREFUSED\b/.test(error.message)) {
|
||||
|
||||
Reference in New Issue
Block a user