mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 494412 – Make error message more clear when we can't load xpcom due to lack of memory. r=benjamin
This commit is contained in:
parent
828209d4e2
commit
331b166366
@ -431,7 +431,14 @@ main(int argc, char **argv)
|
||||
|
||||
rv = XPCOMGlueStartup(greDir);
|
||||
if (NS_FAILED(rv)) {
|
||||
Output(PR_TRUE, "Couldn't load XPCOM.\n");
|
||||
if (rv == NS_ERROR_OUT_OF_MEMORY) {
|
||||
char applicationName[2000] = "this application";
|
||||
parser.GetString("App", "Name", applicationName, sizeof(applicationName));
|
||||
Output(PR_TRUE, "Not enough memory available to start %s.\n",
|
||||
applicationName);
|
||||
} else {
|
||||
Output(PR_TRUE, "Couldn't load XPCOM.\n");
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user