Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fix exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Jan 9, 2015
1 parent 3d0fe40 commit 26c5c0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function hasManyErrors(data) {

function getTextError(title, words) {
var SEPARATOR = '\n-----';

words.forEach(function(val, i) {
words[i] = (i + 1) + '. ' + words[i];
});
Expand Down Expand Up @@ -264,7 +264,10 @@ if(program.dictionary) {
var hasErrors = false,
tasks = [],
onResource = function(err, data) {
err || (hasErrors = true);
if(err) {
hasErrors = true;
}

buildResource(err, data);
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "yaspeller",
"main": "index.js",
"description": "Search tool typos in the text, files and websites",
"version": "0.7.1",
"version": "0.7.2",
"license": "MIT",
"homepage": "https://github.com/hcodes/yaspeller",
"repository": {
Expand Down

0 comments on commit 26c5c0c

Please sign in to comment.