Skip to content

Commit

Permalink
Improve error message to show valid values
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Nov 7, 2024
1 parent da0a1d2 commit 94bd85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func determineEphemeralConsoleMachineGuest(ctx context.Context, appConfig *appco
minMemory = guest.CPUs * fly.MIN_MEMORY_MB_PER_CPU
maxMemory = guest.CPUs * fly.MAX_MEMORY_MB_PER_CPU
default:
return nil, fmt.Errorf("invalid CPU kind '%s'; this is a bug", guest.CPUKind)
return nil, fmt.Errorf("invalid CPU kind '%s'; valid values are 'shared' and 'performace'", guest.CPUKind)
}

adjusted := lo.Clamp(guest.MemoryMB, minMemory, maxMemory)
Expand Down

0 comments on commit 94bd85b

Please sign in to comment.