Skip to content

Commit 4061d39

Browse files
committed
style: feedback from code review
1 parent 0d2c7f0 commit 4061d39

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/commands/force/org/display.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export class OrgDisplayCommand extends SfdxCommand {
103103
};
104104
}
105105
throw new SfdxError(
106-
`No information for scratch org with ID ${sfdc.trimTo15(orgId)} found in Dev Hub ${hubOrg.getUsername()}`
106+
`No information for scratch org with ID ${sfdc.trimTo15(orgId)} found in Dev Hub ${hubOrg.getUsername()}`,
107+
'NoScratchInfo',
108+
['Check that the DevHub is accessible and the ScratchOrgInfo record exists and try again']
107109
);
108110
}
109111
}

src/shared/orgListUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class OrgListUtil {
127127
// Theory: within <orgId>.json, if the userId is the first entry, that's the primary username.
128128
if (orgFileNames.includes(orgFileName)) {
129129
const usernames = ((await fs.readJson(join(Global.DIR, orgFileName))) as { usernames: string[] }).usernames;
130-
if (usernames && usernames[0] && usernames[0] === auth.getFields().username) {
130+
if (usernames && usernames[0] === auth.getFields().username) {
131131
return auth;
132132
}
133133
}

0 commit comments

Comments
 (0)