Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/runtime/src/bundler/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export class BundlingFailedError extends Error {
public readonly modulePath: string,
public readonly reason: string
) {
super(`Bundling of ${modulePath} failed`);
const reasonMessage = JSON.parse(reason).message ?? reason;
super(`Bundling of ${modulePath} failed with error:\n\n${reasonMessage}\n`);
this.name = 'BundlingFailedError';
}
}