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:
parent
b2f33e2895
commit
2f27b94757
@ -394,7 +394,7 @@ function loadExtension(dir, type, enabled) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (stylesheetPath != null)
|
if (stylesheetPath != null)
|
||||||
theme.unload_stylesheet(stylesheetPath);
|
theme.unload_stylesheet(stylesheetPath);
|
||||||
logExtensionError(uuid, e);
|
logExtensionError(uuid, '' + e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user