Skip to content

Commit

Permalink
Fix - Exit code was 0 when one of files failed to load
Browse files Browse the repository at this point in the history
  • Loading branch information
kdzwinel committed Feb 16, 2015
1 parent 7cfa094 commit 019412e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ sourceLoader
.then(function (files) {
files.forEach(function (paragraphs) {
//if there are any suggestions exit with 1
if (paragraphs.length > 0) {
if (paragraphs && paragraphs.length > 0) {
process.exit(1);
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "proofreader",
"description": "Simple text proofreader based on 'write-good' (hemingway-app-like suggestions) and 'nodehun' (spelling).",
"version": "0.6.2",
"version": "0.6.3",
"repository": {
"type": "git",
"url": "git://github.com/kdzwinel/Proofreader.git"
Expand Down

0 comments on commit 019412e

Please sign in to comment.