summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Alsharifi <bilal.alsharifi@gmail.com>2021-01-07 10:23:12 -0500
committerBilal Alsharifi <bilal.alsharifi@gmail.com>2021-01-07 10:23:12 -0500
commitf64e43dc02722b48d0ae211eaa3eac0a49d0f4d8 (patch)
tree7c80644ba068ce89f80712dbce6ba8c7471eeeb3
parent11a80c269f9f33cdca03faa9764477477d07fa3f (diff)
downloadsdl_android-f64e43dc02722b48d0ae211eaa3eac0a49d0f4d8.tar.gz
Add log message when file upload failes
-rw-r--r--base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java b/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java
index 6d8dd1fd5..5d59b8e13 100644
--- a/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java
+++ b/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java
@@ -359,6 +359,10 @@ abstract class BaseFileManager extends BaseSubManager {
uploadFilePrivate(file, new FileManagerCompletionListener() {
@Override
public void onComplete(boolean success, int bytesAvailable, Collection<String> fileNames, String errorMessage) {
+ if (!success && errorMessage != null) {
+ DebugTool.logWarning(TAG, errorMessage);
+ }
+
if (listener != null) {
listener.onComplete(success);
}