Skip to content

Commit 5a8d583

Browse files
committedMay 3, 2019
Made comment on image blob loading error handling clearer.
1 parent 7a4b700 commit 5a8d583

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎Source/Core/Resource.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,8 @@ define([
944944
window.URL.revokeObjectURL(generatedBlobResource.url);
945945
}
946946

947-
// We attach additional information to the error here so that it can be handled by an ImageProvider.
947+
// If the blob load succeeded but the image decode failed, provide access to the blob on the error object because it may provide useful insight.
948+
// In particular, BingMapsImageryProvider uses this to detect the zero-length "image" that some map styles return when a real tile is not available.
948949
error.blob = generatedBlob;
949950

950951
return when.reject(error);

0 commit comments

Comments
 (0)