From e04c3b73a2bff0e5b6f1b597df150bbff7fef2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sat, 24 Sep 2005 19:06:46 +0000 Subject: Handle contentEncodingError error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-09-24 Jean-François Rameau * embed/mozilla/EphyAboutModule.cpp: (GetErrorMessage): Handle contentEncodingError error. --- embed/mozilla/EphyAboutModule.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'embed/mozilla/EphyAboutModule.cpp') diff --git a/embed/mozilla/EphyAboutModule.cpp b/embed/mozilla/EphyAboutModule.cpp index 5b38b0ae1..b425216a7 100644 --- a/embed/mozilla/EphyAboutModule.cpp +++ b/embed/mozilla/EphyAboutModule.cpp @@ -326,6 +326,11 @@ EphyAboutModule::GetErrorMessage(nsIURI *aURI, "a problem with your proxy server or your " "network connection."); } + else if (strcmp (aError, "contentEncodingError") == 0) + { + *aPrimary = g_strdup (_("Could not display content.")); + *aSecondary = _("The page uses an unsupported or invalid form of compression."); + } else { return NS_ERROR_ILLEGAL_VALUE; -- cgit v1.2.3