decdk icon indicating copy to clipboard operation
decdk copied to clipboard

Collect multiple errors in processing

Open mrgrain opened this issue 2 years ago • 1 comments

Currently the app immidiately stops when an error in processing (grammer parsing, type checking, CDK evaluation) occurs. This makes it very tedious to fix things.

We should try and continue processing as much as possible, while collecting all errors and printing them together.

mrgrain avatar Oct 25 '22 10:10 mrgrain

Yaml Errors look like this and cannot be collected (unless we switch the library):

YAMLSemanticError: Implicit map keys need to be on a single line at line 10, column 5:

    Type aws-cdk-lib.aws_cloudfront.OriginAccessIdentity
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…

mrgrain avatar Oct 25 '22 14:10 mrgrain