fix: Should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...)

This commit is contained in:
Jose Diaz-Gonzalez
2019-09-15 18:09:26 -04:00
parent 78dba3be3c
commit 8662f4550f

View File

@@ -88,7 +88,7 @@ func TriggerDockerArgsProcessDeploy(appName string, processType string) error {
// TriggerInstall runs the install step for the resource plugin
func TriggerInstall() error {
if err := common.PropertySetup("resource"); err != nil {
return errors.New(fmt.Sprintf("Unable to install the resource plugin: %s", err.Error()))
return fmt.Errorf("Unable to install the resource plugin: %v", err)
}
return nil
}