diff --git a/libcorpus2_whole/io/documentcorpusreader.cpp b/libcorpus2_whole/io/documentcorpusreader.cpp index 12d035904f1e8113c28b1fff413df38bd6264872..a85e97cc4a79fe7b3a01679d55fbd416b0a5a995 100644 --- a/libcorpus2_whole/io/documentcorpusreader.cpp +++ b/libcorpus2_whole/io/documentcorpusreader.cpp @@ -35,8 +35,7 @@ boost::shared_ptr<Corpus> DocumentCorpusReader::read(const std::string& corpus_f continue; } else if (splitted_line.size() == 1) { - // maybe exception? - continue; + throw Corpus2Error("DocumentReader requires both paths to relations and annotations"); } ann_path = splitted_line[0];