Skip to content

Commit

Permalink
fix: misleading warning message when cloud session is expired (#6503)
Browse files Browse the repository at this point in the history
  • Loading branch information
10ko authored Oct 1, 2024
1 parent 3a7f74c commit 8359ae3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ ${renderCommands(commands)}
} catch (err) {
if (err instanceof CloudApiTokenRefreshError) {
log.warn(dedent`
Unable to authenticate against ${distroName} with the current session token.
Command results for this command run will not be available in ${distroName}. If this not a
${distroName} project you can ignore this warning. Otherwise, please try logging out with
\`garden logout\` and back in again with \`garden login\`.
The current ${distroName} session is not valid or it's expired.
Command results for this command run will not be available in ${distroName}.
To avoid losing command results and logs, please try logging back in by running \`garden login\`.
If this not a ${distroName} project you can ignore this warning.
`)

// Project is configured for cloud usage => fail early to force re-auth
Expand Down

0 comments on commit 8359ae3

Please sign in to comment.