Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cryptic error message in Node.of() (#17)
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
- Loading branch information