[gnome-shell] extensionSystem: Fix an error related to extension importing



commit 2f27b94757e58216658d4a5d5bb91b2ce8d73497
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 18 19:44:30 2012 -0500

    extensionSystem: Fix an error related to extension importing
    
    If an extension fails to import, we will pass the error object
    to logExtensionError, which fails to pass it onto DBus as an
    error object is not a string. To fix, convert the error object
    to a string before passing it to logExtensionError.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668429

 js/ui/extensionSystem.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 23470e1..e7eea66 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -394,7 +394,7 @@ function loadExtension(dir, type, enabled) {
     } catch (e) {
         if (stylesheetPath != null)
             theme.unload_stylesheet(stylesheetPath);
-        logExtensionError(uuid, e);
+        logExtensionError(uuid, '' + e);
         return;
     }
 



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