Bug 326238 - xulrunner fails if <installdir>/extensions is not available and cannot be written. r=mconnor

This commit is contained in:
rob_strong%exchangecode.com 2006-02-08 17:11:25 +00:00
parent 7f539c548c
commit bc63200f53

View File

@ -944,7 +944,13 @@ function DirectoryInstallLocation(name, location, restricted, priority) {
throw new Error("location must be a directoy!");
}
else {
location.create(nsILocalFile.DIRECTORY_TYPE, 0775);
try {
location.create(nsILocalFile.DIRECTORY_TYPE, 0775);
}
catch (e) {
LOG("DirectoryInstallLocation: failed to create location " +
" directory = " + location.path + ", exception = " + e + "\n");
}
}
this._location = location;