Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0michalsokolowski0 committed Aug 29, 2024
1 parent b3fe50a commit 8e395b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/cmd/stack/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package stack
import (
"context"
"fmt"
"math"
"slices"
"strings"

Expand All @@ -26,6 +27,10 @@ func listStacks() cli.ActionFunc {
return fmt.Errorf("limit must be greater than 0")
}

if cliCtx.Uint(flagLimit.Name) >= math.MaxInt32 {
return fmt.Errorf("limit must be less than %d", math.MaxInt32)
}

limit = internal.ToPtr(cliCtx.Uint(flagLimit.Name))
}

Expand Down

0 comments on commit 8e395b6

Please sign in to comment.