There was an error while loading. Please reload this page.
DeclarationReference
1 parent 7a76ff6 commit 8c247c0Copy full SHA for 8c247c0
1 file changed
apps/api-extractor-model/src/items/ApiItem.ts
@@ -108,7 +108,13 @@ export class ApiItem {
108
*/
109
public get canonicalReference(): DeclarationReference {
110
if (!this._canonicalReference) {
111
- this._canonicalReference = this.buildCanonicalReference();
+ try {
112
+ this._canonicalReference = this.buildCanonicalReference();
113
+ } catch (e) {
114
+ const name: string = this.getScopedNameWithinPackage() || this.displayName;
115
+ throw new InternalError(`Error building canonical reference for ${name}:\n`
116
+ + e.message);
117
+ }
118
}
119
return this._canonicalReference;
120
0 commit comments