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:
parent
de86920e0e
commit
2a32fb2e72
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user