layout: Add catch when asynchronously setting up the startup animation

This ensures any errors that occur in this stage of startup are clearly
logged.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2822>
This commit is contained in:
Evan Welsh 2023-07-05 18:12:39 -07:00
parent 3f12f3a87c
commit 7a5f1e5c9e

View File

@ -684,7 +684,7 @@ var LayoutManager = GObject.registerClass({
if (this.primaryMonitor) {
this._systemBackground.show();
global.stage.show();
this._prepareStartupAnimation();
this._prepareStartupAnimation().catch(logError);
return GLib.SOURCE_REMOVE;
} else {
return GLib.SOURCE_CONTINUE;