From e64d210cf0a798ae99bec89ca37cffcc1599411d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 1 Feb 2022 16:20:58 -0400 Subject: fix erroring for only one property at a time --- src/upd8.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/upd8.js b/src/upd8.js index 001aaa5..9c86c26 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -808,9 +808,7 @@ function makeProcessDocument(thingClass, { withAggregate({message: `Errors applying ${color.green(thingClass.name)} properties`}, ({ call }) => { for (const [ property, value ] of Object.entries(sourceProperties)) { - (() => { - thing[property] = value; - })(); + call(() => (thing[property] = value)); } }); -- cgit 1.3.0-6-gf8a5