manage remote and io exception in fanfix
[fanfix.git] / src / be / nikiroo / fanfix / reader / tui / TuiReaderApplication.java
index 6f7ed3cbddc61f003d286ce231c0b4d0daeb41d0..b6f31ff4e9b43b98e4fadf3bc655b66f02225fa4 100644 (file)
@@ -82,7 +82,7 @@ class TuiReaderApplication extends TApplication implements Reader {
        }
 
        @Override
-       public Story getStory(Progress pg) {
+       public Story getStory(Progress pg) throws IOException {
                return reader.getStory(pg);
        }
 
@@ -113,7 +113,11 @@ class TuiReaderApplication extends TApplication implements Reader {
 
        @Override
        public void browse(String source) {
-               reader.browse(source);
+               try {
+                       reader.browse(source);
+               } catch (IOException e) {
+                       Instance.getTraceHandler().error(e);
+               }
        }
 
        @Override