We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f695ed commit d5bca9eCopy full SHA for d5bca9e
apps/api-extractor-model/src/mixins/ApiItemContainerMixin.ts
@@ -154,7 +154,8 @@ export function ApiItemContainerMixin<TBaseClass extends IApiItemConstructor>(ba
154
155
public addMember(member: ApiItem): void {
156
if (this[_membersByContainerKey].has(member.containerKey)) {
157
- throw new Error(`Another member has already been added with the same name (${member.name}) and containerKey (${member.containterKey})`);
+ throw new Error(`Another member has already been added with the same name (${member.displayName})` +
158
+ ` and containerKey (${member.containerKey})`);
159
}
160
161
const existingParent: ApiItem | undefined = member.parent;
0 commit comments