Skip to content

Commit

Permalink
added corrupted file check
Browse files Browse the repository at this point in the history
  • Loading branch information
cpietsch committed Nov 24, 2020
1 parent c38e5c3 commit c645f80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/textures.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ exports.run = async function textures(inputPath, options) {
const spritesheetFiles = []
for await (const operation of resizer) {
console.log(operation.progress, operation.file);
spritesheetFiles.push(operation.log[2])
if (operation.log[2]) spritesheetFiles.push(operation.log[2])
else console.error("Error with file", operation.file);
}

const spriter = await sharpsheet(spritesheetFiles, spritesPath, {
Expand Down

0 comments on commit c645f80

Please sign in to comment.