diff --git a/src/flags/orgFlags.ts b/src/flags/orgFlags.ts index 875b34d14..541e11b4a 100644 --- a/src/flags/orgFlags.ts +++ b/src/flags/orgFlags.ts @@ -14,7 +14,11 @@ const maybeGetOrg = async (input?: string): Promise => { try { return Org.create({ aliasOrUsername: input }); } catch (e) { - return undefined; + if (!input) { + return undefined; + } else { + throw e; + } } };