Merge pull request #13645 from mike-000/tile-load-errors
Output GeoTIFF tile load errors to console
This commit is contained in:
@@ -685,7 +685,8 @@ class GeoTIFFSource extends DataTile {
|
|||||||
const normalize = this.normalize_;
|
const normalize = this.normalize_;
|
||||||
const metadata = this.metadata_;
|
const metadata = this.metadata_;
|
||||||
|
|
||||||
return Promise.all(requests).then(function (sourceSamples) {
|
return Promise.all(requests)
|
||||||
|
.then(function (sourceSamples) {
|
||||||
/** @type {Uint8Array|Float32Array} */
|
/** @type {Uint8Array|Float32Array} */
|
||||||
let data;
|
let data;
|
||||||
if (normalize) {
|
if (normalize) {
|
||||||
@@ -770,6 +771,11 @@ class GeoTIFFSource extends DataTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
// output then rethrow
|
||||||
|
console.error(error); // eslint-disable-line no-console
|
||||||
|
throw error;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user