mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Merge pull request #3074 from overleaf/msm-update-oerror-logger-v3
Update o-error to v3 and logger-sharelatex to v3 GitOrigin-RevId: 5e6386f65b7893949336aa4ff021212aebd98f4a
This commit is contained in:
@@ -694,17 +694,13 @@ async function createNewFolderStructure(projectId, docEntries, fileEntries) {
|
||||
}
|
||||
).exec()
|
||||
if (project == null) {
|
||||
throw new OError({
|
||||
message: 'project not found or folder structure already exists',
|
||||
info: { projectId }
|
||||
throw new OError('project not found or folder structure already exists', {
|
||||
projectId
|
||||
})
|
||||
}
|
||||
return project.version
|
||||
} catch (err) {
|
||||
throw new OError({
|
||||
message: 'failed to create folder structure',
|
||||
info: { projectId }
|
||||
}).withCause(err)
|
||||
throw OError.tag(err, 'failed to create folder structure', { projectId })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user