Skip to content

Commit 6850649

Browse files
committed
fix error handling get-access-token command
1 parent 4f55873 commit 6850649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/cmd/auth/get-access-token/get_access_token.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4545

4646
accessToken, err := auth.GetValidAccessToken(params.Printer)
4747
if err != nil {
48-
return err
48+
params.Printer.Debug(print.ErrorLevel, "get valid access token: %v", err)
49+
return &cliErr.SessionExpiredError{}
4950
}
5051

5152
switch model.OutputFormat {

0 commit comments

Comments
 (0)