Skip to content

Commit 067802b

Browse files
committed
Fix post message error propagation issue
Error object cannot be sent through postMessage, send e.message string instead.
1 parent 0eb029e commit 067802b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/outlet/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ export class Outlet {
174174
} catch (e: any) {
175175
logger(2,e);
176176

177-
// TODO: We shouldn't be sending the full exception here, instead return error messages only.
178-
this.sendErrorResponse(evtid, e);
177+
this.sendErrorResponse(evtid, e.message);
179178
}
180179
}
181180

0 commit comments

Comments
 (0)