mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
better error message when reference file not found
This commit is contained in:
parent
ab2e18466f
commit
04544f8bfc
@ -25,6 +25,7 @@ while(-e "$stem$ref") {
|
||||
$ref++;
|
||||
}
|
||||
&add_to_ref($stem,\@REF) if -e $stem;
|
||||
die("ERROR: could not find reference file $stem") unless scalar @REF;
|
||||
|
||||
sub add_to_ref {
|
||||
my ($file,$REF) = @_;
|
||||
|
Loading…
Reference in New Issue
Block a user