Skip to content

Commit dc9c8fe

Browse files
Fix bug from merge (#116)
1 parent 505ac0d commit dc9c8fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/tiger/cmd/auth.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717

1818
"github.com/timescale/tiger-cli/internal/tiger/analytics"
1919
"github.com/timescale/tiger-cli/internal/tiger/api"
20+
"github.com/timescale/tiger-cli/internal/tiger/common"
2021
"github.com/timescale/tiger-cli/internal/tiger/config"
2122
"github.com/timescale/tiger-cli/internal/tiger/util"
2223
)
@@ -209,7 +210,7 @@ func buildStatusCmd() *cobra.Command {
209210

210211
// Handle API response
211212
if resp.StatusCode() != 200 {
212-
return exitWithErrorFromStatusCode(resp.StatusCode(), resp.JSON4XX)
213+
return common.ExitWithErrorFromStatusCode(resp.StatusCode(), resp.JSON4XX)
213214
}
214215

215216
if resp.JSON200 == nil {

0 commit comments

Comments
 (0)