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
This commit is contained in:
Jasper St. Pierre 2012-01-18 19:44:30 -05:00
parent b2f33e2895
commit 2f27b94757

View File

@ -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;
}