File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
AndroidSDKCore/src/main/java/com/leanplum/internal Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,9 @@ public void sendRequests() {
153153 sendRequests ();
154154 }
155155 } else {
156- Exception errorException = new Exception ("HTTP error " + statusCode );
157- String errorMessage = errorException .getMessage ();
156+ String errorMessage = "HTTP error " + statusCode ;
158157 if (responseBody != null ) {
159- errorMessage += " " + responseBody .toString ();
158+ errorMessage += ": " + responseBody .toString ();
160159 }
161160 Log .i (errorMessage );
162161
@@ -166,6 +165,8 @@ public void sendRequests() {
166165 && !(statusCode >= 500 && statusCode <= 599 )) {
167166 batchFactory .deleteFinishedBatch (batch );
168167 }
168+
169+ Exception errorException = new Exception (errorMessage );
169170 invokeCallbacksWithError (errorException );
170171 }
171172 } catch (JSONException e ) {
You can’t perform that action at this time.
0 commit comments