mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00
Bug 773783 - Launching an app with an incompatible version of Firefox installed on Mac produces a very not so useful error message. r=myk
This commit is contained in:
parent
7b4441a19e
commit
a2f11bcca5
@ -331,14 +331,12 @@ NSString
|
||||
@"org.mozilla.aurora",
|
||||
@"org.mozilla.firefox", nil];
|
||||
|
||||
//if they provided a manual override, use that. If they made an error, it will fail to launch
|
||||
// If they provided a binary ID, use that.
|
||||
if (alternateBinaryID != nil && ([alternateBinaryID length] > 0)) {
|
||||
binaryPath = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:alternateBinaryID];
|
||||
if (binaryPath == nil || [binaryPath length] == 0) {
|
||||
@throw MakeException(@"Web Runtime Not Found",
|
||||
[NSString stringWithFormat:@"Failed to locate specified override Web Runtime with signature '%@'", alternateBinaryID]);
|
||||
if (binaryPath && [binaryPath length] > 0) {
|
||||
return binaryPath;
|
||||
}
|
||||
return binaryPath;
|
||||
}
|
||||
|
||||
//No override found, loop through the various flavors of firefox we have
|
||||
|
Loading…
x
Reference in New Issue
Block a user