extensionSystem: Make it a non-fatal error to re-load an extension

https://bugzilla.gnome.org/show_bug.cgi?id=673613
This commit is contained in:
Jasper St. Pierre 2012-04-06 14:03:51 -04:00
parent 5ea5806730
commit b095319a16

View File

@ -249,7 +249,8 @@ function loadExtension(dir, type, enabled) {
let extension; let extension;
if (ExtensionUtils.extensions[uuid] != undefined) { if (ExtensionUtils.extensions[uuid] != undefined) {
throw new Error('extension already loaded'); global.logError('Extension "%s" is already loaded'.format(uuid));
return;
} }
try { try {