mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073522 - Better error when front has no actor. r=dcamp
This commit is contained in:
parent
4c4fa7a34f
commit
ed7c3723b1
@ -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…
Reference in New Issue
Block a user