From 8662f4550fcd738b8d300f3a628f60e697a5f666 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 15 Sep 2019 18:09:26 -0400 Subject: [PATCH] fix: Should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) --- plugins/resource/triggers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/resource/triggers.go b/plugins/resource/triggers.go index 530f5a1a0..caf7aca4d 100644 --- a/plugins/resource/triggers.go +++ b/plugins/resource/triggers.go @@ -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 }