mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 23:25:03 +00:00
Bug 1073522 - Better error when front has no actor. r=dcamp
This commit is contained in:
parent
05c810463a
commit
8bedcbc2ba
@ -1061,6 +1061,14 @@ let Front = Class({
|
||||
this.actorID = null;
|
||||
},
|
||||
|
||||
manage: function(front) {
|
||||
if (!front.actorID) {
|
||||
throw new Error("Can't manage front without an actor ID.\n" +
|
||||
"Ensure server supports " + front.typeName + ".");
|
||||
}
|
||||
return Pool.prototype.manage.call(this, front);
|
||||
},
|
||||
|
||||
/**
|
||||
* @returns a promise that will resolve to the actorID this front
|
||||
* represents.
|
||||
|
Loading…
x
Reference in New Issue
Block a user