Short story long:
I am trying to load an xml that define what files I will actually load, after loading the xml file, the code load a sample image file with path provided from xml. However, the path is wrong as intended and it does failed to load with error message, and I expect the complete call back to give me 1 success and 1 failure (otherwise, I don’t know what that totalFailed is for ). At the end, complete callback unexpectedly give me 2 totalComplete and 0 totalFailed, is it a bug or am I missing something?
The server is indeed redirecting user to home page when requesting a non-exist file. I think I could change that based on media type.
Anyway, I think failure of the image parsing should also count to failure instead of success in this case because the user only care whether the resource can be used or not, not on which preparing stage it fail. Otherwise, the fail count would be less useful.