From 4876332923cf97828040725b3a5599065aa957aa Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Tue, 6 Sep 2022 17:06:44 -0700 Subject: [PATCH] fix(agoric-cli): Follow-up: explain invariant --- packages/agoric-cli/src/main-publish.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/agoric-cli/src/main-publish.js b/packages/agoric-cli/src/main-publish.js index 8c51378cb3b9..4485f45f8c7d 100644 --- a/packages/agoric-cli/src/main-publish.js +++ b/packages/agoric-cli/src/main-publish.js @@ -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, });