added some error output

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28369 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2008-10-29 22:33:17 +00:00
parent 9d42ec70c9
commit 8824242b84
@@ -197,14 +197,17 @@ identify_tiff_header(BPositionIO *inSource, BMessage *ioExtension,
if (documentIndex < 1 || documentIndex > documentCount) { if (documentIndex < 1 || documentIndex > documentCount) {
// document index is invalid // document index is invalid
fprintf(stderr, "identify_tiff_header: invalid document index\n");
return B_NO_TRANSLATOR; return B_NO_TRANSLATOR;
} }
} }
// identify the document the user specified or the first document // identify the document the user specified or the first document
// if the user did not specify which document they wanted to identify // if the user did not specify which document they wanted to identify
if (!TIFFSetDirectory(tif, documentIndex - 1)) if (!TIFFSetDirectory(tif, documentIndex - 1)) {
fprintf(stderr, "identify_tiff_header: couldn't set directory\n");
return B_NO_TRANSLATOR; return B_NO_TRANSLATOR;
}
if (ioExtension) { if (ioExtension) {
// add page count to ioExtension // add page count to ioExtension