Skip to content

Commit ce7eccd

Browse files
authored
Merge c0d8b21 into 38e6829
2 parents 38e6829 + c0d8b21 commit ce7eccd

File tree

3 files changed

+532
-543
lines changed

3 files changed

+532
-543
lines changed

firebase-storage/src/main/java/com/google/firebase/storage/StorageException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ private static boolean isResultSuccess(int resultCode) {
127127
static String getErrorMessageForCode(int errorCode) {
128128
switch (errorCode) {
129129
case ERROR_UNKNOWN:
130+
System.out.println("Error code: " + errorCode);
130131
return "An unknown error occurred, please check the HTTP result code and inner "
131132
+ "exception for server response.";
132133
case ERROR_OBJECT_NOT_FOUND:
@@ -150,6 +151,7 @@ static String getErrorMessageForCode(int errorCode) {
150151
case ERROR_CANCELED:
151152
return "The operation was cancelled.";
152153
default:
154+
System.out.println("Error code: " + errorCode);
153155
return "An unknown error occurred, please check the HTTP result code and inner "
154156
+ "exception for server response.";
155157
}

firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ private boolean shouldContinue() {
343343
// we attempt to recover by calling recoverStatus(true)
344344
if (inErrorState) {
345345
if (currentTime > deadLine || !recoverStatus(true)) {
346+
System.out.println("Deadline reached!");
346347
if (serverStateValid()) {
347348
tryChangeState(INTERNAL_STATE_FAILURE, false);
348349
}

0 commit comments

Comments
 (0)