fix "No template found for item" warning and make it an error
Change-Id: I75985c3f8821b3506e46eaf572c54828db97c964
This commit is contained in:
parent
bb66a2c3ee
commit
947b3986d1
@ -72,12 +72,16 @@ MIMELIST = \
|
||||
master-document \
|
||||
oasis-text \
|
||||
oasis-text-template \
|
||||
oasis-text-flat-xml \
|
||||
oasis-spreadsheet \
|
||||
oasis-spreadsheet-template \
|
||||
oasis-spreadsheet-flat-xml \
|
||||
oasis-drawing \
|
||||
oasis-drawing-template \
|
||||
oasis-drawing-flat-xml \
|
||||
oasis-presentation \
|
||||
oasis-presentation-template \
|
||||
oasis-presentation-flat-xml \
|
||||
oasis-formula \
|
||||
oasis-master-document \
|
||||
oasis-database \
|
||||
|
@ -119,7 +119,7 @@ foreach $template (keys %templates) {
|
||||
# templates exist
|
||||
unless(open(TEMPLATE, $outfile)) {
|
||||
print STDERR "Warning: No template found for item $_: $outfile: $!\n";
|
||||
next;
|
||||
exit -1;
|
||||
}
|
||||
|
||||
# open output file
|
||||
|
Loading…
x
Reference in New Issue
Block a user