[Pkg-mozext-commits] [itsalltext] 04/09: Don't fail if an unknown error is thrown

David Prévot taffit at moszumanska.debian.org
Sat Feb 28 15:56:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 5cec88edc381d3ebb45ed75e493071d56ce8dd3d
Author: Christian Höltje <docwhat at gerf.org>
Date:   Wed Feb 25 23:04:00 2015 -0500

    Don't fail if an unknown error is thrown
    
    We had problems because an unknown error was thrown by the
    cacheobj trying to figure out a good filename.  This just causes it to
    fall back to the old behavior instead of failing.
---
 src/chrome/content/cacheobj.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 62f393d..3fcfc86 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -116,8 +116,9 @@ function CacheObj(node) {
               case 'NS_ERROR_FILE_TARGET_DOES_NOT_EXIST':
                 break;
               default:
-                itsalltext.debug("File naming error:", e);
-                throw e;
+                itsalltext.debug("File naming, falling back to old-style;", e);
+                that.base_filename = [window.encodeURIComponent(doc.location.host), hash].join('.');
+                break;
             }
         }
         break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list