Skip to content

Commit

Permalink
fix(agoric-cli): Follow-up: explain invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Sep 9, 2022
1 parent 569c0ac commit 4876332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/agoric-cli/src/main-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const publishMain = async (progname, rawArgs, powers, opts) => {
});
const publishBundle = makeBundlePublisher({
getDefaultConnection() {
throw new Error(``);
throw new Error(
'Invariant: publishBundle will never call getDefaultConnection because we provide an explicit connectionSpec',
);
},
publishBundleCosmos,
});
Expand Down

0 comments on commit 4876332

Please sign in to comment.