Permalink
Browse files

[fix] Fixes jitsu not reporting new version

* Using the jitsu.log before init was making the code throw.
  Since it was in a try catch we never noticed.
  Until now...

![Stare Dad](http://cdn.superbwallpapers.com/wallpapers/meme/staredad-9237-400x250.jpg)
  • Loading branch information...
dscape committed Feb 15, 2013
1 parent b1117d2 commit 0ebdc1a727160d01a209e2d0dfeb55162f4fc865
Showing with 8 additions and 8 deletions.
  1. +7 −7 lib/jitsu.js
  2. +1 −1 lib/jitsu/common/index.js
@@ -141,16 +141,16 @@ jitsu.start = function (callback) {
return;
}

jitsu.common.checkVersion(function (err) {
jitsu.init(function (err) {
if (err) {
return callback();
jitsu.welcome();
callback(err);
return jitsu.showError(jitsu.argv._.join(' '), err);
}
jitsu.init(function (err) {

jitsu.common.checkVersion(function (err) {
if (err) {
jitsu.welcome();
callback(err);
return jitsu.showError(jitsu.argv._.join(' '), err);
return callback();
}

//
@@ -173,7 +173,7 @@ common.checkVersion = function (callback) {
//
request({
uri: 'http://registry.npmjs.org/jitsu/latest',
timeout: 400
timeout: 1000
}, function (err, res, body) {
if (!responded) {
responded = true;

0 comments on commit 0ebdc1a

Please sign in to comment.