ga-wdi-boston / node-api

Other
0 stars 100 forks source link

Make this diff in master to reflect solution #17

Open BenGitsCode opened 7 years ago

BenGitsCode commented 7 years ago

    json = JSON.stringify(pojo, null, 2);

    fs.writeFile(outFile, json, { flag: outFileFlag }, error => {
      if (error) {
        console.error(error.stack);
        return;
      }

-      console.error('\ncopied');
+ // let's us know that the function ran successfully
+ console.log('\ncopied');
    });
  });
};

module.exports = copyJson;