Skip to content

Commit

Permalink
improve stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Oct 14, 2024
1 parent c65844d commit 08bfb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class RequestHandler extends AsyncResource {

function request (opts, callback) {
if (callback === undefined) {
return new Promise((resolve, reject) => {
return new Promise(function asyncRequest (resolve, reject) {
request.call(this, opts, (err, data) => {
return err ? reject(err) : resolve(data)
})
Expand Down

0 comments on commit 08bfb82

Please # to comment.