Skip to content

Commit 3afb67d

Browse files
committed
Add response to all connection callbacks. Fixes #20.
1 parent 6763928 commit 3afb67d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ extend(Connection.prototype, {
7171
else {
7272
try {
7373
var body = JSON.parse(rawBody);
74-
if (!body.error) callback(null, body);
74+
if (!body.error) callback(null, body, response);
7575
else callback(new ArangoError(body));
7676
} catch (e) {
77-
callback(e);
77+
callback(e, rawBody, response);
7878
}
7979
}
8080
});

0 commit comments

Comments
 (0)