From: kramm Date: Sun, 16 Apr 2006 13:37:59 +0000 (+0000) Subject: added more precise error reporting X-Git-Tag: release-0-8-0~216 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=bc31c361b1e2fbac6c96925851775c6bc28a58be added more precise error reporting --- diff --git a/pdf2swf/xpdf/Link.cc b/pdf2swf/xpdf/Link.cc index 898ca20..422edc8 100644 --- a/pdf2swf/xpdf/Link.cc +++ b/pdf2swf/xpdf/Link.cc @@ -430,10 +430,9 @@ LinkGoTo::LinkGoTo(Object *destObj) { delete dest; dest = NULL; } - // error } else { - error(-1, "Illegal annotation destination"); + error(-1, "Illegal annotation destination %d", destObj->getType()); } } @@ -468,10 +467,9 @@ LinkGoToR::LinkGoToR(Object *fileSpecObj, Object *destObj) { delete dest; dest = NULL; } - // error } else { - error(-1, "Illegal annotation destination"); + error(-1, "Illegal annotation destination %d", destObj->getType()); } }