diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | backend/djvu/djvu-document.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,10 @@ 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 to always set @error when returning FALSE. 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; |