[gnome-shell] extensionDownloader: Fix errors during error paths during installation



commit 8915bb4892bc2b46feb1349cdfaff7c68c7143a1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jun 15 22:35:26 2012 -0400

    extensionDownloader: Fix errors during error paths during installation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679099

 js/ui/extensionDownloader.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js
index ad7c5f5..b1c0810 100644
--- a/js/ui/extensionDownloader.js
+++ b/js/ui/extensionDownloader.js
@@ -54,7 +54,7 @@ function uninstallExtensionFromUUID(uuid) {
 
 function gotExtensionZipFile(session, message, uuid) {
     if (message.status_code != Soup.KnownStatusCode.OK) {
-        logExtensionError(uuid, 'downloading extension: ' + message.status_code);
+        ExtensionSystem.logExtensionError(uuid, 'downloading extension: ' + message.status_code);
         return;
     }
 
@@ -63,7 +63,8 @@ function gotExtensionZipFile(session, message, uuid) {
         if (!dir.query_exists(null))
             dir.make_directory_with_parents(null);
     } catch (e) {
-        logExtensionError('Could not create extension directory');
+        ExtensionSystem.logExtensionError(uuid, 'Could not create extension directory');
+        return;
     }
 
     let [file, stream] = Gio.File.new_tmp('XXXXXX.shell-extension.zip');
@@ -77,7 +78,7 @@ function gotExtensionZipFile(session, message, uuid) {
                                           null);
 
     if (!success) {
-        logExtensionError(uuid, 'extract: could not extract');
+        ExtensionSystem.logExtensionError(uuid, 'extract: could not extract');
         return;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]