mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #2602 from overleaf/hb-too-many-files-errors
Too many files errors for new files modal GitOrigin-RevId: a9e2db2e4d8624de4e062161781067ee0c68c4e0
This commit is contained in:
committed by
Copybot
parent
bb3394885c
commit
ab80c72565
@@ -150,10 +150,10 @@ module.exports = EditorHttpController = {
|
||||
'editor',
|
||||
userId,
|
||||
function(error, doc) {
|
||||
if (error && error.message === 'project_has_to_many_files') {
|
||||
if (error && error.message === 'project_has_too_many_files') {
|
||||
return res
|
||||
.status(400)
|
||||
.json(req.i18n.translate('project_has_to_many_files'))
|
||||
.json(req.i18n.translate('project_has_too_many_files'))
|
||||
} else if (error) {
|
||||
return next(error)
|
||||
} else {
|
||||
@@ -176,10 +176,10 @@ module.exports = EditorHttpController = {
|
||||
name,
|
||||
'editor',
|
||||
function(error, doc) {
|
||||
if (error && error.message === 'project_has_to_many_files') {
|
||||
if (error && error.message === 'project_has_too_many_files') {
|
||||
return res
|
||||
.status(400)
|
||||
.json(req.i18n.translate('project_has_to_many_files'))
|
||||
.json(req.i18n.translate('project_has_too_many_files'))
|
||||
} else if (error && error.message === 'invalid element name') {
|
||||
return res.status(400).json(req.i18n.translate('invalid_file_name'))
|
||||
} else if (error) {
|
||||
|
||||
Reference in New Issue
Block a user