Interactive interface for browsing global, full-resolution satellite imagery
Revert WV-3452 change to processColormap.js (#6436)
Tom Cariello96b18342d0ec
diff --git a/tasks/build-options/processColormap.js b/tasks/build-options/processColormap.jsindex d6b875937..0270aac9d 100755--- a/tasks/build-options/processColormap.js+++ b/tasks/build-options/processColormap.js@@ -75,17 +75,18 @@ const walk = (dir) => {async function main () {const files = await walk(inputDir)- const promises = files.map(async (file) => {- const { id, xml } = await readFileAsync(file)- return processFile(id, xml)- })- const results = await Promise.allSettled(promises)- const { fulfilled = [], rejected = [] } = Object.groupBy(results, (item) => item.status)-- rejected.forEach(({ reason }) => console.error(`${prog}: ERROR: ${reason}`))-- fileCount += fulfilled.length- errorCount += rejected.length+ for (const file of files) {+ try {+ const { id, xml } = await readFileAsync(file)+ await processFile(id, xml)+ fileCount += 1+ } catch (error) {+ console.error(error)++ console.error(`${prog}: ERROR: ${error}`)+ errorCount += 1+ }+ }try {const wmtsFiles = fs.readdirSync(layersDir)