Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge queue: embarking main (9a61a4c) and #6176 together #6304

Closed
wants to merge 8 commits into from
Closed
9 changes: 7 additions & 2 deletions libs/wingsdk/src/platform/platform-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,14 @@ export function _loadCustomPlatform(customPlatformPath: string): any {
script.runInContext(context);
return new (platformModule.exports as any).Platform();
} catch (error) {
if (process.env.DEBUG) {
console.error(error);
}
const hint = customPlatformPath.includes(".")
? "Ensure the path to the platform is correct"
: `Ensure you have installed the platform provider by running 'npm install ${customPlatformPath}'`;
console.error(
"An error occurred while loading the custom platform:",
error
`An error occurred while loading the custom platform: ${customPlatformPath}\n\n(hint: ${hint})`
);
}
}
Expand Down
Loading