Skip to content

Commit 9490005

Browse files
committed
Fix error serialization exception
1 parent cd52c99 commit 9490005

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function setup(ctx, rpcMethods, callbacks) {
6565
Promise.resolve()
6666
.then( () => method.apply(null, data.params) )
6767
.then( result => { ctx.postMessage({ type: 'RPC', id, result }); })
68-
.catch( error => { ctx.postMessage({ type: 'RPC', id, error }); });
68+
.catch( err => { ctx.postMessage({ type: 'RPC', id, error: ''+err }); });
6969
}
7070
}
7171
else {

0 commit comments

Comments
 (0)