Skip to content

Commit

Permalink
fix: stop suppressing contract evaluation errors (#1887)
Browse files Browse the repository at this point in the history
Fixed a bug that was causing early (syntax) errors to be silently dropped.
  • Loading branch information
erights authored Oct 21, 2020
1 parent 95a403f commit 96cd62f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/zoe/src/contractFacet/evalContractCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const evalContractBundle = (bundle, additionalEndowments = {}) => {

const installation = importBundle(bundle, {
endowments: fullEndowments,
}).catch(() => {}); // Don't trigger Node.js's UnhandledPromiseRejectionWarning
});
// Don't trigger Node.js's UnhandledPromiseRejectionWarning
installation.catch(() => {});
return installation;
};

Expand Down

0 comments on commit 96cd62f

Please sign in to comment.