Skip to content

How to see detailed error message? #4057

@rix0rrr

Description

@rix0rrr

DocFX Version Used: 2.40.11.0

Template used: custom template

Steps to Reproduce:

I undoubtedly have a mistake in my template, either in the JavaScript or in the Mustache. I can't tell. The problem is very much that I can't tell what the problem is, because DocFX doesn't show me any error message. This is what I see a 100 times:

[19-02-20 03:05:17.969]Error:[BuildCore.Build Document.LinkPhaseHandlerWithIncremental.Apply Templates](api/Amazon.CDK.AWS.KMS.EncryptionKeyAliasProps.yml)Error transforming model "/var/folders/y2/gfhldsms0bdbck1zjl2647gnr9xt2d/T/docfx/rawmodel/api/Amazon.CDK.AWS.KMS.EncryptionKeyAliasProps.raw.json" generated from "api/Amazon.CDK.AWS.KMS.EncryptionKeyAliasProps.yml" using "ManagedReference.html.primary.js". Error running Transform function inside template preprocessor: 

I have no idea how to use the tool to give me more details on the error it encountered.

Expected Behavior: Error message and stack trace tells the cause of the error (JavaScript error message, or otherwise). I noticed that if I do throw new Error(...) in the transformer I do see the error message, so I must have hit a messageless error, for which the lack of stack trace is causing me a problem right now.

Actual Behavior: Error message tells me there is a problems somewhere in the (potentially large) file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fundamentalEngineering system and core components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions