Properly propagate 204 to fetchManifest
This commit is contained in:
parent
c857250b12
commit
b6287f4839
3 changed files with 25 additions and 7 deletions
|
@ -682,6 +682,11 @@ async function fetchManifest(
|
|||
return;
|
||||
}
|
||||
} catch (err) {
|
||||
if (err.code === 204) {
|
||||
log.info('storageService.fetchManifest: no newer manifest, ok');
|
||||
return;
|
||||
}
|
||||
|
||||
log.error(
|
||||
'storageService.fetchManifest: failed!',
|
||||
err && err.stack ? err.stack : String(err)
|
||||
|
@ -691,10 +696,6 @@ async function fetchManifest(
|
|||
await createNewManifest();
|
||||
return;
|
||||
}
|
||||
if (err.code === 204) {
|
||||
// noNewerManifest we're ok
|
||||
return;
|
||||
}
|
||||
|
||||
throw err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue