Closed jdmedlock closed 7 years ago
The issue is lies in generateShots.js
in this code:
} else {
console.log('Successfully created', count, 'screenshots.');
console.log('Unsuccessful: ', errors.length);
errors.forEach((errLessonId) => {
console.log(errLessonId);
});
}
The success message should replaced with:
console.log('Attempted to create', count, 'screenshots.');
console.log('Successfully created', count - errors.length, 'screenshots.');
Issue Description & Expected Outcome: When generating a screenshot messages are generated indicating that the production of a screenshot is successful and unsuccessful and the screenshot
.jpg
is not generated. The expected outcome is for the success message to be generated if the screenshotjpg
file was created or the failure message to be generated if it could not be generated. One or the other message should be emitted, but not both.Symptoms:
Steps to Recreate: From a terminal session enter
yarn screenshots algorithms1
Resolution: Resolved with changes to generateShot.js