Skip to content

Commit

Permalink
restricted to request queue fails only
Browse files Browse the repository at this point in the history
  • Loading branch information
turtledreams committed Jul 24, 2023
1 parent 48fc24f commit 214c51c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -4024,10 +4024,12 @@
}
else {
log(logLevelEnums.ERROR, functionName + " Failed Server XML HTTP request, ", this.status);
self.hcStatusCode = this.status;
self.hcErrorMessage = this.responseText;
setValueInStorage("cly_hc_status_code", self.hcStatusCode);
setValueInStorage("cly_hc_error_message", self.hcErrorMessage);
if (functionName === "send_request_queue") {
self.hcStatusCode = this.status;
self.hcErrorMessage = this.responseText;
setValueInStorage("cly_hc_status_code", self.hcStatusCode);
setValueInStorage("cly_hc_error_message", self.hcErrorMessage);
}
if (typeof callback === "function") {
callback(true, params, this.status, this.responseText);
}
Expand Down

0 comments on commit 214c51c

Please sign in to comment.