orchestration v1 error types
diff --git a/openstack/orchestration/v1/stacktemplates/requests.go b/openstack/orchestration/v1/stacktemplates/requests.go
index a4687ef..d307fad 100644
--- a/openstack/orchestration/v1/stacktemplates/requests.go
+++ b/openstack/orchestration/v1/stacktemplates/requests.go
@@ -1,10 +1,6 @@
package stacktemplates
-import (
- "fmt"
-
- "github.com/gophercloud/gophercloud"
-)
+import "github.com/gophercloud/gophercloud"
// Get retreives data for the given stack template.
func Get(c *gophercloud.ServiceClient, stackName, stackID string) GetResult {
@@ -38,7 +34,10 @@
vo["template_url"] = opts.TemplateURL
return vo, nil
}
- return vo, fmt.Errorf("One of Template or TemplateURL is required.")
+ err := gophercloud.ErrMissingInput{}
+ err.Argument = "stacktemplates.ValidateOpts.Template/stacktemplates.ValidateOpts.TemplateURL"
+ err.Info = "One of Template or TemplateURL is required."
+ return nil, err
}
// Validate validates the given stack template.