We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8680ca commit 3f66193Copy full SHA for 3f66193
command/device/create.go
@@ -68,7 +68,9 @@ func Create(params *CreateParams) (string, error) {
68
id: devID}
69
err = prov.run()
70
if err != nil {
71
- // TODO: delete the device on iot cloud
+ // TODO: retry to delete the device if it returns an error.
72
+ // In alternative: encapsulate also this error.
73
+ iotClient.DeleteDevice(devID)
74
err = fmt.Errorf("%s: %w", "cannot provision device", err)
75
return "", err
76
}
0 commit comments