Browse Source

Add error logging when reading user profile from server

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 years ago
parent
commit
02a129c3fc

+ 2 - 0
app/src/main/java/com/nextcloud/talk/controllers/ProfileController.java

@@ -194,6 +194,7 @@ public class ProfileController extends BaseController {
 
 
                                 @Override
                                 @Override
                                 public void onError(@io.reactivex.annotations.NonNull Throwable e) {
                                 public void onError(@io.reactivex.annotations.NonNull Throwable e) {
+                                    Log.e(TAG, "Error loading editable user profile from server", e);
                                     edit = false;
                                     edit = false;
                                 }
                                 }
 
 
@@ -365,6 +366,7 @@ public class ProfileController extends BaseController {
 
 
                         @Override
                         @Override
                         public void onError(@io.reactivex.annotations.NonNull Throwable e) {
                         public void onError(@io.reactivex.annotations.NonNull Throwable e) {
+                            Log.e(TAG, "Error loading editable user profile from server", e);
                             edit = false;
                             edit = false;
                         }
                         }