We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5832d commit 9c80d14Copy full SHA for 9c80d14
internal/cmd/beta/logs/instance/create/create.go
@@ -92,6 +92,12 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
92
if err != nil {
93
return fmt.Errorf("create Logs instance: %w", err)
94
}
95
+ if resp == nil {
96
+ return fmt.Errorf("create Logs instance: empty response from API")
97
+ }
98
+ if resp.Id == nil {
99
+ return fmt.Errorf("create Logs instance: instance id missing in response")
100
101
instanceId := *resp.Id
102
103
// Wait for async operation, if async mode not enabled
0 commit comments