From d2fc4af54a03952635e032f16011e9fb06220bf9 Mon Sep 17 00:00:00 2001 From: Samual Date: Sat, 11 May 2024 00:12:11 +0100 Subject: [PATCH] show help when `hsm push` can't find any users --- src/bin/hsm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/hsm.ts b/src/bin/hsm.ts index d978e28..d55b520 100755 --- a/src/bin/hsm.ts +++ b/src/bin/hsm.ts @@ -167,7 +167,7 @@ switch (commands[0]) { break } - const { push, MissingSourceFolderError, MissingHackmudFolderError } = await pushModule + const { push, MissingSourceFolderError, MissingHackmudFolderError, NoUsersError } = await pushModule const infos = await push(sourcePath, hackmudPath, { scripts, @@ -180,7 +180,7 @@ switch (commands[0]) { if (infos instanceof Error) { logError(infos.message) - if (infos instanceof MissingSourceFolderError) { + if (infos instanceof MissingSourceFolderError || infos instanceof NoUsersError) { console.log() logHelp() } else if (infos instanceof MissingHackmudFolderError) { -- knotmirror 0.0.1