Skip to content

Commit

Permalink
disks: reword error message on bad DiskConfig struct
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed May 9, 2020
1 parent 0c45818 commit 749fd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compute/models/disks.go
Expand Up @@ -1611,7 +1611,7 @@ func parseDiskInfo(ctx context.Context, userCred mcclient.TokenCredential, info
// diskConfig.SizeMb = options.Options.DefaultDiskSize // MB
// else
if len(info.ImageId) == 0 && info.SizeMb == 0 {
return nil, httperrors.NewInputParameterError("Diskinfo not contains either imageID or size")
return nil, httperrors.NewInputParameterError("Diskinfo index %d: both imageID and size are absent", info.Index)
}
return info, nil
}
Expand Down

0 comments on commit 749fd87

Please sign in to comment.