From 34c3fdc7e41a14ecd966587f150985248d89d601 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 15 Feb 2009 13:53:01 +0000 Subject: 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 --- (limited to 'backend') 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; -- cgit v0.9.1