mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 326238 - xulrunner fails if <installdir>/extensions is not available and cannot be written. r=mconnor
This commit is contained in:
parent
7f539c548c
commit
bc63200f53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user