From 6b40882a1572f31dd04c887285e1b13dcbe7cec0 Mon Sep 17 00:00:00 2001 From: Remi Cohen-Scali Date: Tue, 13 Jan 2004 01:15:47 +0000 Subject: Changed some error handling to make a difference between two parse actions 2004-01-13 Remi Cohen-Scali * xpdf/Link.cc: Changed some error handling to make a difference between two parse actions and have a better report (needed for debug). --- (limited to 'pdf') 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; } -- cgit v0.9.1