Added exception logging
authorJorge Antonio Diaz-Benito Soriano <jorge.diazbenitosoriano@gmail.com>
Wed, 24 Jun 2015 20:24:39 +0000 (22:24 +0200)
committerJorge Antonio Diaz-Benito Soriano <jorge.diazbenitosoriano@gmail.com>
Wed, 24 Jun 2015 20:24:39 +0000 (22:24 +0200)
src/com/owncloud/android/ui/preview/PreviewTextFragment.java

index 107b2a2..0464119 100644 (file)
@@ -158,12 +158,14 @@ public class PreviewTextFragment extends FileFragment {
                 IOException exc = sc.ioException();
                 if (exc != null) throw exc;
             } catch (IOException e) {
                 IOException exc = sc.ioException();
                 if (exc != null) throw exc;
             } catch (IOException e) {
+                Log_OC.e(TAG, e.getMessage(), e);
                 finish();
             } finally {
                 if (inputStream != null) {
                     try {
                         inputStream.close();
                     } catch (IOException e) {
                 finish();
             } finally {
                 if (inputStream != null) {
                     try {
                         inputStream.close();
                     } catch (IOException e) {
+                        Log_OC.e(TAG, e.getMessage(), e);
                         finish();
                     }
                 }
                         finish();
                     }
                 }