Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-02-15 13:53:01 (GMT)
committer Christian Persch <chpe@src.gnome.org>2009-02-15 13:53:01 (GMT)
commit34c3fdc7e41a14ecd966587f150985248d89d601 (patch)
treedbf892013b6b6c9cd795d0ad9b346387483e2623 /backend
parentd37177eb94fcdd9bdaac6aa664d96a01ad9372db (diff)
Make sure to always set @error when returning FALSE. Fix a typo.
* 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
Diffstat (limited to 'backend')
-rw-r--r--backend/djvu/djvu-document.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/djvu/djvu-document.c b/backend/djvu/djvu-document.c
index 31fbd94..de85c1d 100644
--- a/backend/djvu/djvu-document.c
+++ b/backend/djvu/djvu-document.c
@@ -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;