Commit 2ca46ad4 authored by Federico Mestrone's avatar Federico Mestrone
Browse files

Print line on error in IngesterMain

parent 4efbdf61
......@@ -57,7 +57,7 @@ public class IngesterMain {
}
public static void sendFromFileToDataStore(Ingester ingester) {
String line;
String line = null;
try {
BufferedReader reader = new BufferedReader(new FileReader(fileToRead));
reader.readLine(); // skip CSV headers
......@@ -67,6 +67,7 @@ public class IngesterMain {
}
} catch (InputMismatchException e) {
System.out.println("Error in data file");
System.out.println("line:" + line);
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment