Skip to content

Commit

Permalink
Make sure error is serializable
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Munk <carsten.munk@zippie.org>
  • Loading branch information
Carsten Munk authored and Tom Swindell committed Jul 11, 2019
1 parent ac20afe commit d97a99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class MessageDispatcher {
})
.catch(e => {
event.source.postMessage({
callback: event.data.callback, error: e
callback: event.data.callback, error: e.toString()
},
event.origin)
})
Expand Down

0 comments on commit d97a99e

Please sign in to comment.