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:
committed by
mkmelin@iki.fi
parent
6b3ef218ef
commit
254c16342f
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user