Skip to content

Commit

Permalink
Log error properly
Browse files Browse the repository at this point in the history
  • Loading branch information
davigonz committed Jun 5, 2017
1 parent acb85ed commit a3e2240
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/com/owncloud/android/datamodel/OCFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import android.webkit.MimeTypeMap;

import com.owncloud.android.R;
import com.owncloud.android.authentication.AccountUtils;
import com.owncloud.android.lib.common.accounts.AccountUtils;
import com.owncloud.android.lib.common.network.WebdavUtils;
import com.owncloud.android.lib.common.utils.Log_OC;

Expand Down Expand Up @@ -764,10 +764,9 @@ public String getPrivateLink(Context context, Account account) {

String link = null;
try {
link = com.owncloud.android.lib.common.accounts.
AccountUtils.getUrlForFile(context, account, fileId);
} catch (com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException e) {
e.printStackTrace();
link = AccountUtils.getUrlForFile(context, account, fileId);
} catch (AccountUtils.AccountNotFoundException e) {
Log_OC.e(TAG, e.toString());
}

return link;
Expand Down

0 comments on commit a3e2240

Please sign in to comment.