extensionSystem: Log an extension error if loading the stylesheet failed
Instead of only logging a message that loading the extension stylesheet failed and silently returning we should use `logExtensionError` for that instead. This also sets the extension state to ERROR and makes sure we don't try to enable it again. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96
This commit is contained in:
parent
e76877c4b8
commit
c06eb5d0a7
@ -121,7 +121,7 @@ var ExtensionManager = class {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.NOT_FOUND))
|
if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.NOT_FOUND))
|
||||||
continue; // not an error
|
continue; // not an error
|
||||||
log(`Failed to load stylesheet for extension ${uuid}: ${e.message}`);
|
this.logExtensionError(uuid, e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user