summaryrefslogtreecommitdiff
path: root/src/main/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/Main.java')
-rw-r--r--src/main/Main.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/Main.java b/src/main/Main.java
index 2644db9..1f45fe9 100644
--- a/src/main/Main.java
+++ b/src/main/Main.java
@@ -119,7 +119,7 @@ public class Main implements Callable<Boolean> {
++tweetNo;
}
return true;
- } catch (JsonParseException ex) {
+ } catch (JsonParseException | IOException ex) {
if (tweet != null) {
System.err.println("Faulty tweet " + tweetNo + ": " + tweet);
}
@@ -161,6 +161,7 @@ public class Main implements Callable<Boolean> {
} catch (IOException ex) {
System.err.println("Cannot open tweets: " + ex);
} finally {
+ System.err.println("Last tweet that got processed: " + tweetNo);
if (reader != null) {
reader.close();
}