]> www.fi.muni.cz Git - evince.git/commitdiff
Changed some error handling to make a difference between two parse actions
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>
Tue, 13 Jan 2004 01:15:47 +0000 (01:15 +0000)
committerRémi Cohen-Scali <rcoscali@src.gnome.org>
Tue, 13 Jan 2004 01:15:47 +0000 (01:15 +0000)
2004-01-13  Remi Cohen-Scali  <rcoscali@cvs.gnome.org>

* xpdf/Link.cc: Changed some error handling
to make a difference between two parse actions
and have a better report (needed for debug).

pdf/xpdf/Link.cc

index 39b7cebe22d52122d893901a28295af1a395d093..c87f6ce7b5e1f2a70353cd10a1f88c26291faef8 100644 (file)
@@ -42,8 +42,9 @@ LinkAction *LinkAction::parseAction(Object *obj, GString *baseURI) {
   Object obj2, obj3, obj4;
 
   if (!obj->isDict()) {
-    error(-1, "Bad annotation action");
-    return NULL;
+      error(-1, "parseAction: Bad annotation action for URI '%s'",
+            baseURI ? baseURI->getCString() : "NULL");
+      return NULL;
   }
 
   obj->dictLookup("S", &obj2);
@@ -92,7 +93,8 @@ LinkAction *LinkAction::parseAction(Object *obj, GString *baseURI) {
 
   // action is missing or wrong type
   } else {
-    error(-1, "Bad annotation action");
+    error(-1, "parseAction: Unknown annotation action object: URI = '%s'",
+          baseURI ? baseURI->getCString() : "NULL");
     action = NULL;
   }