Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Check if which is truthy before trying to append a color to it; fallback to a generic message #4

Merged
merged 1 commit into from

2 participants

@MikeMayer

Just a small change because I found that which was undefined always and it caused a very noisy console.

@edwardhotchkiss edwardhotchkiss merged commit d837e2d into edwardhotchkiss:master
@edwardhotchkiss

:P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 10, 2012
  1. @MikeMayer

    which was always undefined and every change spewed a ton of mess to m…

    MikeMayer authored
    …y logger; check if which is truthy instead then log
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/always.js
View
5 bin/always.js
@@ -149,7 +149,10 @@ function initializeFileMonitor(app){
// setup monitor EE
var monitor = Monitor.create(path.dirname(app));
monitor.on('change', function(which) {
- logger(which.green+' has changed, restarting');
+ if (which)
+ logger(which.green+' has changed, restarting');
+ else
+ logger('app has changed, restarting');
restart();
});
};
Something went wrong with that request. Please try again.