extensionSystem: Catch and log session update errors
If sessionUpdated() fails we get a js failure but not information about where the actual problem was, so catch for error properly. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3495>
This commit is contained in:
@ -43,7 +43,7 @@ export class ExtensionManager extends Signals.EventEmitter {
|
|||||||
() => this._reloadExtensionStylesheets());
|
() => this._reloadExtensionStylesheets());
|
||||||
|
|
||||||
Main.sessionMode.connect('updated', () => {
|
Main.sessionMode.connect('updated', () => {
|
||||||
this._sessionUpdated();
|
this._sessionUpdated().catch(logError);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ export class ExtensionManager extends Signals.EventEmitter {
|
|||||||
this._installExtensionUpdates();
|
this._installExtensionUpdates();
|
||||||
this._sessionUpdated().then(() => {
|
this._sessionUpdated().then(() => {
|
||||||
ExtensionDownloader.checkForUpdates();
|
ExtensionDownloader.checkForUpdates();
|
||||||
});
|
}).catch(logError);
|
||||||
|
|
||||||
GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, UPDATE_CHECK_TIMEOUT, () => {
|
GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, UPDATE_CHECK_TIMEOUT, () => {
|
||||||
ExtensionDownloader.checkForUpdates();
|
ExtensionDownloader.checkForUpdates();
|
||||||
|
Reference in New Issue
Block a user