You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/src/commands/accounts/current.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ export default class Current extends Command {
13
13
if(account){
14
14
ux.styledHeader(`Current account is ${account}`)
15
15
}else{
16
-
ux.error(`You haven't set an account. Run ${color.cmd('heroku login')} to confirm you're logged in to Heroku.`)
16
+
ux.error(`You haven't set an account. Run ${color.cmd('heroku accounts:add <account-name>')} to add an account to your cache or ${color.cmd('heroku accounts:set <account-name>')} to set the current account.`)
@@ -28,7 +27,7 @@ describe('accounts:current', function () {
28
27
currentStub.returns(null)
29
28
awaitrunCommand(Cmd,[])
30
29
.catch((error: Error)=>{
31
-
expect(stripAnsi(error.message)).to.equal('You haven\'t set an account. Run heroku login to confirm you\'re logged in to Heroku.')
30
+
expect(stripAnsi(error.message)).to.equal('You haven\'t set an account. Run heroku accounts:add <account-name> to add an account to your cache or heroku accounts:set <account-name> to set the current account.')
0 commit comments