ReferenceError: e is not defined
Closed this issue · 0 comments
davidpellerin commented
I believe I might have found an error in the Questrade.prototype._api
function:
The code in question looks like this:
request(opts, function (err, http, response) {
if (err) {
return cb({
message: 'api_call_failed',
url: self.apiUrl + endpoint,
method: method,
details: e
});
}
cb(null, response);
});
but e
is never defined anywhere. I believe that the value of details
should be err
am I ok to make a PR for this?