Merge pull request #5277 from overleaf/jpa-handle-missing-file-during-refresh

[web] fix handling of missing source file when refreshing a linked file

GitOrigin-RevId: 775bf08a37adb20e71a1492d27bce9a41b959d27
This commit is contained in:
Jakob Ackermann
2021-09-30 08:04:06 +00:00
committed by Copybot
parent 4b0e85f340
commit b58ba2299a
2 changed files with 38 additions and 2 deletions
@@ -197,7 +197,7 @@ module.exports = ProjectFileAgent = {
},
function (err, entity, type) {
if (err != null) {
if (/^not found.*/.test(err.toString())) {
if (/^not found.*/.test(err.message)) {
err = new SourceFileNotFoundError()
}
return callback(err)