Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>2004-01-13 01:15:47 (GMT)
committer RĂ©mi Cohen-Scali <rcoscali@src.gnome.org>2004-01-13 01:15:47 (GMT)
commit6b40882a1572f31dd04c887285e1b13dcbe7cec0 (patch)
tree13c5e4ab79a8201d808327b5f3c9370d237760d5
parent6d5e1a35538369b07d51c5a89a5b3c0788f4aacd (diff)
Changed some error handling to make a difference between two parse actions
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).
-rw-r--r--pdf/xpdf/Link.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/pdf/xpdf/Link.cc b/pdf/xpdf/Link.cc
index 39b7ceb..c87f6ce 100644
--- a/pdf/xpdf/Link.cc
+++ b/pdf/xpdf/Link.cc
@@ -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;
}