Permalink
Browse files

Fix some general bugs

  • Loading branch information...
1 parent ba67735 commit 8d75cff83b89a24016391ccfa185c415f864dacf @pksunkara committed Jan 15, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +3 −3 lib/police/check.js
  3. +1 −1 lib/police/github.js
  4. +1 −1 lib/police/help.js
View
@@ -1,2 +1,3 @@
npm-debug.log
node_modules
+*.swp
View
@@ -91,10 +91,10 @@ check.local = function (file) {
police.winston.info('Read file ' + file.cyan);
try {
check.pkg(JSON.parse(data), true, police.exit);
- } catch (err) {
+ } catch (err) {
police.winston.error('Unable to parse package.json'.red.bold);
- police.exit(1);
- }
+ police.exit(1);
+ }
}
});
}
@@ -41,7 +41,7 @@ github.singleUser = function (name, other) {
})
});
} else {
- police.winston.info('Getting repositories for ' + name.cyan);
+ if (name) police.winston.info('Getting repositories for ' + name.cyan);
github.get('/user/repos', function (repos) {
github.multipleModule(repos.filter(function (e, i, a) {
return e.language=='JavaScript' || e.language=='CoffeeScript';
View
@@ -37,7 +37,7 @@ help.usage = [
'',
'Police another user/org module dependencies'.cyan.bold,
- ' police -u <username>',
+ ' police -u <username>',
'',
'Police a particular module of another user/org'.cyan.bold,

0 comments on commit 8d75cff

Please sign in to comment.