Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set the error flag based on the success of the request.
  • Loading branch information
nvahalik committed Jul 22, 2024
1 parent 662df38 commit 64a0b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/UploadTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public Result doWork() {
// Start building the output data
final Data.Builder outputData = new Data.Builder()
.putString(KEY_OUTPUT_ID, id)
.putBoolean(KEY_OUTPUT_IS_ERROR, false)
.putBoolean(KEY_OUTPUT_IS_ERROR, !response.isSuccessful())
.putInt(KEY_OUTPUT_STATUS_CODE, (!DEBUG_SKIP_UPLOAD) ? response.code() : 200);

// Try read the response body, if any
Expand Down

0 comments on commit 64a0b15

Please sign in to comment.