summaryrefslogtreecommitdiff
path: root/nodejs/lib
diff options
context:
space:
mode:
Diffstat (limited to 'nodejs/lib')
-rw-r--r--nodejs/lib/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodejs/lib/api.js b/nodejs/lib/api.js
index f9b981a..b9f768f 100644
--- a/nodejs/lib/api.js
+++ b/nodejs/lib/api.js
@@ -148,7 +148,7 @@ async function send_this(data) {
queue.enqueue(data, 1);
break;
default:
- data.reject(response);
+ data.reject(err);
}
}
}