[Poppler-bugs] [Bug 20660] New: Improved error reporting of 'ErrOpenFile' errors

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 14 06:22:03 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20660

           Summary: Improved error reporting of 'ErrOpenFile' errors
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glib frontend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: ewtoombs at uwaterloo.ca


Created an attachment (id=23850)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=23850)
improves error reporting in poppler-glib

I modified poppler so that if 'ErrOpenFile' occurs from running
poppler_document_new_from_file(uri, password, error), the resulting GError will
be a G_FILE_ERROR with the appropriate code and message for the circumstances.
It is now possible, for instance, for a program using poppler-glib to
distinguish 'file not found', 'no permission', 'is a directory', etc. errors.

I started from the git repository today and I've come up with the attached
patch.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list