Added overwrite protection
diff --git a/script/prepare_index.pl b/script/prepare_index.pl
index f482b5d..4b87ddb 100644
--- a/script/prepare_index.pl
+++ b/script/prepare_index.pl
@@ -114,7 +114,7 @@
my $doc = KorAP::Document->new( path => $input );
unless ($doc->parse) {
- $log->trace($output . " can't be processed");
+ $log->warn($output . " can't be processed - no document data");
exit(0);
};
@@ -134,7 +134,7 @@
# Unable to process base tokenization
unless ($tokens->parse) {
- $log->trace($output . " can't be processed");
+ $log->error($output . " can't be processed - no base tokenization");
exit(0);
};