mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #2661 from overleaf/em-convert-doc-to-file-ranges
Do not convert a doc to file when it has ranges GitOrigin-RevId: 52f0151e54c426178f80c34c6afac908bbf7b90d
This commit is contained in:
@@ -241,6 +241,12 @@ async function convertDocToFile(req, res, next) {
|
||||
throw new HttpErrors.NotFoundError({
|
||||
info: { public: { message: 'Document not found' } }
|
||||
})
|
||||
} else if (err instanceof Errors.DocHasRangesError) {
|
||||
throw new HttpErrors.UnprocessableEntityError({
|
||||
info: {
|
||||
public: { message: 'Document has comments or tracked changes' }
|
||||
}
|
||||
})
|
||||
} else {
|
||||
throw err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user