Merge "Don't bail on fetchBuildAllInfo if fetchBuildManifest fails"

This commit is contained in:
Zuul 2021-02-16 00:54:56 +00:00 committed by Gerrit Code Review
commit d878aad582
1 changed files with 2 additions and 3 deletions

View File

@ -370,10 +370,9 @@ export function fetchBuildManifest(buildId, state) {
const response = await Axios.get(artifact.url) const response = await Axios.get(artifact.url)
return dispatch(receiveBuildManifest(buildId, response.data)) return dispatch(receiveBuildManifest(buildId, response.data))
} catch(error) { } catch(error) {
// Show the error since we expected a manifest but did not
// receive it.
dispatch(failedBuildManifest(buildId, error, artifact.url)) dispatch(failedBuildManifest(buildId, error, artifact.url))
// Raise the error again, so fetchBuildAllInfo() doesn't call
// fetchLogFile which needs an existing manifest file.
throw error
} }
} }
} }