Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/couchbase/bucket/n1ql.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@ static void n1qlrow_callback(lcb_t instance, int ignoreme, const lcb_RESPN1QL *r
}
}
if (!reported) {
pcbc_log(LOGARGS(instance, ERROR), "Failed to perform N1QL query. %d: %.*s", (int)resp->htresp->htstatus,
(int)resp->nrow, (char *)resp->row);
if (resp->htresp) {
pcbc_log(LOGARGS(instance, ERROR), "Failed to perform N1QL query. %d: %.*s", (int)resp->htresp->htstatus,
(int)resp->nrow, (char *)resp->row);
} else {
pcbc_log(LOGARGS(instance, ERROR), "Failed to perform N1QL query. %.*s",
(int)resp->nrow, (char *)resp->row);
}
}
}

Expand Down