Skip to content

Commit e1dfa95

Browse files
committed
style: format as messages
1 parent 4061d39 commit e1dfa95

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

messages/display.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
"sfdx force:org:display -u [email protected]",
66
"sfdx force:org:display -u TestOrg1 --json",
77
"sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"
8-
]
8+
],
9+
"noScratchOrgInfoError": "No information for scratch org with ID %s found in Dev Hub %s",
10+
"noScratchOrgInfoAction": "Check that the DevHub is accessible and the ScratchOrgInfo record exists and try again"
911
}

src/commands/force/org/display.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +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+
messages.getMessage('noScratchOrgInfoError', [sfdc.trimTo15(orgId), hubOrg.getUsername()]),
107107
'NoScratchInfo',
108-
['Check that the DevHub is accessible and the ScratchOrgInfo record exists and try again']
108+
[messages.getMessage('noScratchOrgInfoAction')]
109109
);
110110
}
111111
}

0 commit comments

Comments
 (0)