Expected Behavior
If an asset request returns a 404 response the WebLoader should skip that source and try the next.
Actual Behavior
The 404 response body is returned.
Steps to Reproduce
class Storage extends ScratchStorage {
constructor () {
super();
this.addWebSource(
[this.AssetType.Project],
asset => `https://example.com/${asset.assetId}`
);
}
}
const storage = new Storage();
storage.load(storage.AssetType.Project, "x", storage.DataFormat.JSON)
.then(project => console.log("I did load this:", project))
.catch(e => console.error("Loading failed"));
I'll try to submit a PR for this.