Skip to content

Commit

Permalink
Add information for metadata fail. (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzh authored Sep 2, 2016
1 parent 524dcf2 commit 6d18d0a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.DocAsCode.Metadata.ManagedReference

using Microsoft.DocAsCode.Common;
using Microsoft.DocAsCode.DataContracts.ManagedReference;
using Microsoft.DocAsCode.Exceptions;

public class SymbolVisitorAdapter
: SymbolVisitor<MetadataItem>
Expand Down Expand Up @@ -430,7 +431,14 @@ public string AddSpecReference(
IReadOnlyList<string> typeGenericParameters = null,
IReadOnlyList<string> methodGenericParameters = null)
{
return _generator.AddSpecReference(symbol, typeGenericParameters, methodGenericParameters, _references, this);
try
{
return _generator.AddSpecReference(symbol, typeGenericParameters, methodGenericParameters, _references, this);
}
catch (Exception ex)
{
throw new DocfxException($"Unable to generate spec reference for {VisitorHelper.GetCommentId(symbol)}", ex);
}
}

#endregion
Expand Down

0 comments on commit 6d18d0a

Please sign in to comment.