Bug 1695467 - Don't throw "Error: Can't find profile directory." when showing the profile manager. r=mossop

When the profile manager is showing (started with `--p`, we haven't yet selected a profile.
Don't pollute the console for this case.

Differential Revision: https://phabricator.services.mozilla.com/D250121
This commit is contained in:
Magnus Melin
2025-05-20 09:22:54 +00:00
committed by mkmelin@iki.fi
parent 6b3ef218ef
commit 254c16342f

View File

@@ -81,6 +81,9 @@ XULStore.prototype = {
try {
this._storeFile = Services.dirsvc.get("ProfDS", Ci.nsIFile);
} catch (ex) {
if (Services.startup.startingUp) {
return;
}
throw new Error("Can't find profile directory.");
}
}