]> www.fi.muni.cz Git - evince.git/commitdiff
Make sure to always set @error when returning FALSE. Fix a typo.
authorChristian Persch <chpe@src.gnome.org>
Sun, 15 Feb 2009 13:53:01 +0000 (13:53 +0000)
committerChristian Persch <chpe@src.gnome.org>
Sun, 15 Feb 2009 13:53:01 +0000 (13:53 +0000)
* backend/djvu/djvu-document.c: (djvu_document_load): Make sure
to always set @error when returning FALSE. Fix a typo.

svn path=/trunk/; revision=3454

ChangeLog
backend/djvu/djvu-document.c

index 3ef14dcbe41016253088042662783dc47356340b..72657c7847e9d718d23cffc2429511bf62f2ee91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-14  Christian Persch  <chpe@gnome.org>
+
+       * backend/djvu/djvu-document.c: (djvu_document_load): Make sure
+       to always set @error when returning FALSE. Fix a typo.
+
 2009-02-14  Christian Persch  <chpe@gnome.org>
 
        * backend/tiff/tiff-document.c: (tiff_document_load): Make sure
index 31fbd94bd5bbc6af16bbfb37e5d4c93565cf01da..de85c1d4b30250a3755ddbdfd867693ae73f78c1 100644 (file)
@@ -168,6 +168,10 @@ djvu_document_load (EvDocument  *document,
 
        if (!doc) {
                g_free (filename);
+               g_set_error_literal (error,
+                                    EV_DOCUMENT_ERROR,
+                                    EV_DOCUMENT_ERROR_INVALID,
+                                    _("DJVU document has incorrect format"));
                return FALSE;
        }
 
@@ -244,7 +248,7 @@ djvu_document_load (EvDocument  *document,
                g_set_error_literal (error,
                                      G_FILE_ERROR,
                                      G_FILE_ERROR_EXIST,
-                                     _("The document is composed by several files. "
+                                    _("The document is composed of several files. "
                                        "One or more of such files cannot be accessed."));
 
                return FALSE;