minchenkov/node-soap-client — pull request #4 by brunoqc (2011-10-09 17:32:22+00:00)
Title: Fix a ReferenceError and a missing comma in the README

I had a :

/home/bruno/myapp/node_modules/node-soap-client/lib/node-soap-client.js:398
callback(err, null);
^
ReferenceError: callback is not defined
at /home/bruno/myapp/node_modules/node-soap-client/lib/node-soap-client.js:398:17

Even if I fix it by using soapCallback(), err is True. Do you use a second variable for the error message? Wouldn't it be better that err would be the actual error or null if everything is okay?

So this would be possible :

if (err) {
console.log("error", err);
}