We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4845cef commit 0f695edCopy full SHA for 0f695ed
apps/api-extractor-model/src/mixins/ApiItemContainerMixin.ts
@@ -154,7 +154,7 @@ 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 and containerKey');
+ throw new Error(`Another member has already been added with the same name (${member.name}) and containerKey (${member.containterKey})`);
158
}
159
160
const existingParent: ApiItem | undefined = member.parent;
0 commit comments