There was an error while loading. Please reload this page.
1 parent 9c5f942 commit 2891f08Copy full SHA for 2891f08
language/analyze.js
@@ -165,7 +165,10 @@ if (require.main === module) {
165
'Usage: node analyze.js <sentiment|entities|syntax> <text>');
166
process.exit(1);
167
}
168
- exports.main(args[0], args[1], function (result) {
+ exports.main(args[0], args[1], function (err, result) {
169
+ if (err) {
170
+ console.error(err);
171
+ }
172
console.log(JSON.stringify(result, null, ' '));
173
});
174
0 commit comments