Skip to content

Commit

Permalink
Made CLI tool work with recent changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Aug 24, 2014
1 parent a7e1535 commit 3bd7b4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions calais.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ iniparser.parse(home + '/.calais', function (err, data) {
})
calais.set('content', content)

calais.fetch(function (result) {
console.log(result)
calais.fetch(function (error, result) {
if (error) {
console.log('Error attempting to fetch data.');
} else {
console.log(result)
}
})
}
else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "calais",
"version": "0.2.1",
"version": "0.3.0",
"description": "Semantically analyze text using the Calais web service. Original project http://github.com/mcantelon/node-calais",
"tags": [
"semantic",
Expand Down

0 comments on commit 3bd7b4a

Please sign in to comment.