extensionSystem: Fix a wrong error message

The extension object is added to the `this._extensions` Map inside
`createExtensionObject`, not inside `loadExtension`.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96
This commit is contained in:
Jonas Dreßler 2019-09-11 14:23:44 +02:00 committed by Florian Müllner
parent de86920e0e
commit 2a32fb2e72

View File

@ -306,7 +306,7 @@ var ExtensionManager = class {
let dir = extension.dir;
if (!extension)
throw new Error("Extension was not properly created. Call loadExtension first");
throw new Error("Extension was not properly created. Call createExtensionObject first");
let extensionJs = dir.get_child('extension.js');
if (!extensionJs.query_exists(null)) {