Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some general bugs

  • Loading branch information...
commit 8d75cff83b89a24016391ccfa185c415f864dacf 1 parent ba67735
@pksunkara authored
View
1  .gitignore
@@ -1,2 +1,3 @@
npm-debug.log
node_modules
+*.swp
View
6 lib/police/check.js
@@ -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);
+ }
}
});
}
View
2  lib/police/github.js
@@ -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
2  lib/police/help.js
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.