diff --git a/src/android/UploadTask.java b/src/android/UploadTask.java index 8e75c7d2..c032cf94 100644 --- a/src/android/UploadTask.java +++ b/src/android/UploadTask.java @@ -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