Skip to content

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Mar 21, 2020

When Node.of() is called with an object that does not really extend Construct, we can't find the associated construct node. This change improves the error message to provide some hint for why this could happen.

Fixes #16
Related aws/aws-cdk#6885

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

When `Node.of()` is called with an object that does not really extend `Construct`, we can't find the associated construct node. This change improves the error message to provide some hint for why this could happen.

Fixes #16
Related aws/aws-cdk#6885
@mergify
Copy link
Contributor

mergify bot commented Mar 22, 2020

Your pull request will be updated and merged automatically (do not update manually).

@mergify mergify bot merged commit 7db507b into master Mar 22, 2020
@eladb eladb deleted the benisrae/fix-error-message branch December 10, 2021 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In certain cases it is not possible to downcast IConstruct to Construct

2 participants