We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fbf33d commit 08c45cdCopy full SHA for 08c45cd
src/generate.ts
@@ -59,7 +59,7 @@ export async function generateApi(
59
function registerInterface(declaration: ts.InterfaceDeclaration | ts.TypeAliasDeclaration) {
60
const name = declaration.name.escapedText.toString();
61
if (name in interfaces) {
62
- throw new Error('interface/type alias already registered');
+ throw new Error(`interface/type alias ${name} already registered`);
63
}
64
interfaces[name] = declaration;
65
return declaration;
0 commit comments