Skip to content

Commit

Permalink
debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
localnerve committed Jan 7, 2017
1 parent 38fca48 commit 8285458
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/async/index.js
Expand Up @@ -157,6 +157,11 @@ Notifier.prototype = {
if (this.exists(outputFile)) {
fs.access(outputFile, F_OK, function (err) {
var fsExists = !err;
// @@@
if (!fsExists) {
console.log('@@@ ERROR add-timeout');
}
// @@@
this.setError(!fsExists);
this.remove(outputFile, fsExists);

Expand Down
5 changes: 5 additions & 0 deletions lib/html-snapshots.js
Expand Up @@ -98,6 +98,11 @@ function worker(input, options, notifier, qcb) {

cp.on("error", function(e) {
notifier.remove(input.outputFile);
// @@@
if (e) {
console.log('@@@ ERROR process')
}
// @@@
notifier.setError(e);
console.error(e);
qcb(e);
Expand Down

0 comments on commit 8285458

Please sign in to comment.