added more precise error reporting
[swftools.git] / pdf2swf / xpdf / Link.cc
index 898ca20..422edc8 100644 (file)
@@ -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());
   }
 }