mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1219004 - Improve error management in getFullAppByManifestURL r=ferjm
This commit is contained in:
parent
c43a4bf584
commit
a409041ed0
@ -4654,6 +4654,10 @@ this.DOMApplicationRegistry = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this.getManifestFor(aManifestURL).then((aManifest) => {
|
return this.getManifestFor(aManifestURL).then((aManifest) => {
|
||||||
|
if (!aManifest) {
|
||||||
|
return Promise.reject("NoManifest");
|
||||||
|
}
|
||||||
|
|
||||||
let manifest = aEntryPoint && aManifest.entry_points &&
|
let manifest = aEntryPoint && aManifest.entry_points &&
|
||||||
aManifest.entry_points[aEntryPoint]
|
aManifest.entry_points[aEntryPoint]
|
||||||
? aManifest.entry_points[aEntryPoint]
|
? aManifest.entry_points[aEntryPoint]
|
||||||
|
Loading…
Reference in New Issue
Block a user