1 parent 0744594 commit 8cfcdb5Copy full SHA for 8cfcdb5
1 file changed
src/integrations/CtaValidator/componentDiscovery.ts
@@ -65,9 +65,8 @@ export async function discoverCallToActionComponents(
65
}
66
67
} catch (error) {
68
- throw new BuildError({
69
- message: `Failed to read CallToAction components directory '${fullComponentPath}': ${error}`
70
- })
+ const message = error instanceof Error ? error.message : String(error)
+ throw new BuildError(`Failed to read CallToAction components directory '${fullComponentPath}': ${message}`)
71
72
73
return components
0 commit comments