From 2e5b57ab92cd2e2be3a55c036af2caf27184c4d1 Mon Sep 17 00:00:00 2001 From: Drew Bailey Date: Mon, 11 Jan 2021 12:01:10 -0500 Subject: [PATCH] fix error string --- e2e/e2eutil/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/e2eutil/job.go b/e2e/e2eutil/job.go index 144326dcf6c7..b954c762c22b 100644 --- a/e2e/e2eutil/job.go +++ b/e2e/e2eutil/job.go @@ -60,7 +60,7 @@ func JobInspectTemplate(jobID, template string) (string, error) { cmd := exec.Command("nomad", "job", "inspect", "-t", template, jobID) out, err := cmd.CombinedOutput() if err != nil { - return "", fmt.Errorf("could not register job: %w\n%v", err, string(out)) + return "", fmt.Errorf("could not inspect job: %w\n%v", err, string(out)) } outStr := string(out) outStr = strings.TrimSuffix(outStr, "\n")