Skip to content

Commit 7ca747e

Browse files
committed
changed to favor member body over status again since most helpful messages still get delivered over the body
1 parent b0e6510 commit 7ca747e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

query.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function processEntry(query, entry) {
3030
entry.options = {};
3131
entry.callback({
3232
code: (res ? res.statusCode : 0),
33-
message: (body ? (body.status !== "ok" ? body.status : (body.data.length > 0 ? body.data[0] : err)) : err)
33+
message: (body ? (body.data.length > 0 ? body.data[0] : (body.status ? body.status : err)) : err)
3434
});
3535
}
3636

0 commit comments

Comments
 (0)