Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 36bf97b4 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

write error log if file could not be opened

parent fc3943e3
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ namespace TUGraz.VectoCore.Utils
try {
return ReadData(File.ReadAllLines(fileName), ignoreEmptyColumns, fullHeader);
} catch (Exception e) {
Logger<VectoCSVFile>().Error(e);
throw new VectoException(string.Format("File {0}: {1}", fileName, e.Message));
}
}
......@@ -65,6 +66,7 @@ namespace TUGraz.VectoCore.Utils
}
return ReadData(lines.ToArray(), ignoreEmptyColumns);
} catch (Exception e) {
Logger<VectoCSVFile>().Error(e);
throw new VectoException("failed to read stream", e);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment