Skip to content

Commit

Permalink
log error on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanaburayyan committed Apr 18, 2024
1 parent e16b75f commit 9d73cfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/wingsdk/src/platform/platform-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ 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}'`;
Expand Down

0 comments on commit 9d73cfd

Please sign in to comment.