From 4a74587198edf500401f6aca27b49c63f46a8c54 Mon Sep 17 00:00:00 2001 From: Chris Rybicki Date: Wed, 10 Jul 2024 00:09:15 -0400 Subject: [PATCH] chore: fix azure tests failing in CI (#6878) Fixes a regression introduced by https://github.com/winglang/wing/pull/6099 ## Checklist - [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- libs/wingsdk/src/core/class-factory.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/wingsdk/src/core/class-factory.ts b/libs/wingsdk/src/core/class-factory.ts index 2886946d84f..aaefbee5b01 100644 --- a/libs/wingsdk/src/core/class-factory.ts +++ b/libs/wingsdk/src/core/class-factory.ts @@ -1,5 +1,6 @@ import { Construct, IConstruct } from "constructs"; import { App } from "./app"; +import { NotImplementedError } from "./errors"; import { Node } from "../std/node"; const CLASS_FACTORY_SYMBOL = Symbol("@winglang/sdk.core.ClassFactory"); @@ -50,7 +51,7 @@ export class ClassFactory { return new ctor(scope, id, ...args); } - throw new Error(`Unsupported resource type: ${fqn}`); + throw new NotImplementedError(`Unsupported resource type: ${fqn}`); } /**