Skip to content

Commit 9d37cdc

Browse files
authored
Merge pull request #250 from francoisfreitag/import-error
feature(import): Clarify error message for an incorrect addon id
2 parents 212b5ba + 04de83a commit 9d37cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalingo/resource_scalingo_addon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func addonPlanID(ctx context.Context, client *scalingo.Client, providerID, name
307307
func resourceAddonImport(ctx context.Context, d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
308308
ids := strings.Split(d.Id(), ":")
309309
if len(ids) != 2 {
310-
return nil, fmt.Errorf("address should have the following format: <appID>:<addonID>")
310+
return nil, fmt.Errorf("import block id should have the following format: <appID>:<addonID>")
311311
}
312312

313313
d.SetId(ids[1])

0 commit comments

Comments
 (0)