You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A callback in the form of callback(err, results) should be called with an Error when being rejected.
For example, if a business logic fault occurs, the callback is returned with the error being set to the response body. The response body is not an Error, and has no stack trace. This makes it harder to track down business logic errors than it needs to be.
A possible solution might be to replace the module.request function return code, on line 1985, with
I have not submitted a pull request because I don't feel my addition is up to snuff, code-quality-wise. For instance, template strings are not used anywhere else in the code, nor are arrow functions. However, I do feel the issue warranted a remark.
Thank you.
The text was updated successfully, but these errors were encountered:
I also discovered this issue trying to use bluebird's Promise.promisifyAll() to wrap the QuickBooks instance. I saw some weirdness and tracked it down to the lack of an Error being passed to the callback.
A callback in the form of callback(err, results) should be called with an Error when being rejected.
For example, if a business logic fault occurs, the callback is returned with the error being set to the response body. The response body is not an Error, and has no stack trace. This makes it harder to track down business logic errors than it needs to be.
A possible solution might be to replace the module.request function return code, on line 1985, with
as I've done here. DDR0@d355513
I have not submitted a pull request because I don't feel my addition is up to snuff, code-quality-wise. For instance, template strings are not used anywhere else in the code, nor are arrow functions. However, I do feel the issue warranted a remark.
Thank you.
The text was updated successfully, but these errors were encountered: