File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments