diff --git a/models/resources/data.go b/models/resources/data.go index e94e61b..b3ebb03 100644 --- a/models/resources/data.go +++ b/models/resources/data.go @@ -162,7 +162,7 @@ func (r *PricedDataResource) GetPrice() (float64, error) { } if r.SelectedPricing == nil { if len(r.PricingProfiles) == 0 { - return 0, errors.New("pricing profile must be set") + return 0, errors.New("pricing profile must be set on Priced Data" + r.ResourceID) } *r.SelectedPricing = r.PricingProfiles[0] } diff --git a/models/resources/priced_resource.go b/models/resources/priced_resource.go index 7858e30..29538ba 100644 --- a/models/resources/priced_resource.go +++ b/models/resources/priced_resource.go @@ -84,7 +84,7 @@ func (r *PricedResource) GetPrice() (float64, error) { } if r.SelectedPricing == nil { if len(r.PricingProfiles) == 0 { - return 0, errors.New("pricing profile must be set") + return 0, errors.New("pricing profile must be set on Priced Resource" + r.ResourceID) } *r.SelectedPricing = r.PricingProfiles[0] } diff --git a/models/resources/storage.go b/models/resources/storage.go index 2113b1b..b09804e 100644 --- a/models/resources/storage.go +++ b/models/resources/storage.go @@ -173,7 +173,7 @@ func (r *PricedStorageResource) GetPrice() (float64, error) { } if r.SelectedPricing == nil { if len(r.PricingProfiles) == 0 { - return 0, errors.New("pricing profile must be set") + return 0, errors.New("pricing profile must be set on Priced Storage" + r.ResourceID) } *r.SelectedPricing = r.PricingProfiles[0] }