Skip to content

Commit 29410fc

Browse files
committed
Avoids abort when failed to upload attachements
1 parent 57e39f5 commit 29410fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ fs.readJson(opts.config).then(function (config) {
407407
Promise.mapSeries(card.attachments, attachment => {
408408
return fetchImage(attachment.url).then(image => {
409409
return uploadImageToAsana(taskData.id, image, path.basename(attachment.url));
410+
}).catch(reason => {
411+
console.log('Failed to upload attachment', reason);
410412
});
411413
})
412414
);

0 commit comments

Comments
 (0)