summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2023-09-17 22:51:31 +0200
committerJulien Dessaux2023-09-17 22:51:31 +0200
commit3be4f0e9b4e5ad4fcf6e8e1ef5ee489d4549f99d (patch)
tree67b58cb703e78488d4f2b7b4d0e618f1934a73ea
parent[javascript] fixed contract delivery (diff)
downloadspacetraders-3be4f0e9b4e5ad4fcf6e8e1ef5ee489d4549f99d.tar.gz
spacetraders-3be4f0e9b4e5ad4fcf6e8e1ef5ee489d4549f99d.tar.bz2
spacetraders-3be4f0e9b4e5ad4fcf6e8e1ef5ee489d4549f99d.zip
[javascript] fixed wrong variable usage
Diffstat (limited to '')
-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);
}
}
}