Skip to content

Commit

Permalink
fix: stringify an inboundHandler Error better
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Mar 17, 2020
1 parent 2855b34 commit 6f80429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/devices/command-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function setup(syscall, state, helpers, endowments) {
sendResponse(count, isReject, obj) {
if (isReject && obj instanceof Error) {
console.log('inboundHandler rejected with:', obj);
obj = { message: obj.message };
obj = { error: `${obj}` };
}
try {
deliverResponse(count, isReject, JSON.stringify(obj));
Expand Down

0 comments on commit 6f80429

Please sign in to comment.